You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,15 @@
6
6
7
7
A small library to represent and generate arbitrarily complex objects using a flat `float[]`-useful for procedural generation, genetic algorithms, parameter optimization, and compact serialization of parameter spaces.
8
8
9
-
> Parameterize.Net lets you define the *shape* of an object declaratively (attributes or fluent builder), derive a `Resolver` that maps between a `float[]` (a “gene”) and concrete instances, and query ranges and mutation-friendly values for use in genetic/optimization workflows. ([GitHub][1])
9
+
> Parameterize.Net lets you define the *shape* of an object declaratively (attributes or fluent builder), derive a `Resolver` that maps between a `float[]` (a “gene”) and concrete instances, and query ranges and mutation-friendly values for use in genetic/optimization workflows.
10
10
11
11
---
12
12
13
13
## Status & Compatibility
14
14
15
-
* Current package: **Parameterize.Net 2.0.0**. Targets **.NET Standard 2.1** (compatible with .NET 5/6/7/8/9/10 and a variety of platforms). ([NuGet][2])
16
-
* Language: **C#**. Repository contains source and examples. ([GitHub][1])
17
-
* License: **MIT**. ([GitHub][1])
15
+
* Current package: **Parameterize.Net 2.0.0**. Targets **.NET Standard 2.1** (compatible with .NET 5/6/7/8/9/10 and a variety of platforms).
16
+
* Language: **C#**. Repository contains source and examples.
17
+
* License: **MIT**.
18
18
19
19
---
20
20
@@ -26,7 +26,7 @@ A small library to represent and generate arbitrarily complex objects using a fl
26
26
***Declarative model (attributes)** - annotate your classes with `[Parameterize]`, `[Range(min,max)]`, `[Length(min,max)]`, `[Subtype(typeof(...))]`, `[Resolver(typeof(...))]` and the library will derive a `Resolver` for your type.
27
27
***Programmatic model (ResolverBuilder)** - build resolvers explicitly in code for maximum control (good for generated code, editor tooling, or when you prefer fluent definitions).
28
28
29
-
(These concepts and examples are implemented and demonstrated in the repository README and examples.) ([GitHub][1])
29
+
(These concepts and examples are implemented and demonstrated in the repository README and examples.)
30
30
31
31
---
32
32
@@ -38,7 +38,7 @@ A small library to represent and generate arbitrarily complex objects using a fl
(This points the Unity package manager to the package path inside the repo.) ([GitHub][1])
51
+
(This points the Unity package manager to the package path inside the repo.)
52
52
53
53
---
54
54
@@ -104,7 +104,7 @@ var zoo = resolver.Resolve<Zoo>(gene); // create an instance from gene
104
104
Console.WriteLine(zoo);
105
105
```
106
106
107
-
This yields a `Zoo` instance with randomized animals according to the constraints. ([GitHub][1])
107
+
This yields a `Zoo` instance with randomized animals according to the constraints.
108
108
109
109
---
110
110
@@ -242,7 +242,7 @@ If you want, I can **also create a side-by-side comparison of attribute-based vs
242
242
*`[Subtype(typeof(...))]` - polymorphic choices for arrays/lists of base types
243
243
*`[Resolver(typeof(YourResolver))]` - attach a custom resolver to a field/property
244
244
245
-
(Examples and attribute usage are shown in the repository README.) ([GitHub][1])
245
+
(Examples and attribute usage are shown in the repository README.)
246
246
247
247
---
248
248
@@ -276,13 +276,13 @@ This design aims for a deterministic mapping: the same gene should resolve to th
276
276
277
277
## Dependencies
278
278
279
-
* The NuGet package lists `Newtonsoft.Json` (>= 13.0.3) in its package dependencies. Check the package metadata for exact versions. ([NuGet][2])
279
+
* The NuGet package lists `Newtonsoft.Json` (>= 13.0.3) in its package dependencies. Check the package metadata for exact versions.
280
280
281
281
---
282
282
283
283
## Examples & snippets
284
284
285
-
* The repository README includes a compact demo (the `Zoo` example) which demonstrates both attribute-based and fluent-builder approaches. Use the examples as a starting point to integrate Parameterize.Net into your project. ([GitHub][1])
285
+
* The repository README includes a compact demo (the `Zoo` example) which demonstrates both attribute-based and fluent-builder approaches. Use the examples as a starting point to integrate Parameterize.Net into your project.
286
286
287
287
---
288
288
@@ -297,23 +297,23 @@ This design aims for a deterministic mapping: the same gene should resolve to th
297
297
## FAQ
298
298
299
299
**Q: Is Parameterize.Net a serializer?**
300
-
A: Not exactly. It's a parameterization layer that maps between compact float gene vectors and instances. While you can use it to serialize parameter space, its main use is generation and optimization workflows (procedural content, GA-like systems). ([GitHub][1])
300
+
A: Not exactly. It's a parameterization layer that maps between compact float gene vectors and instances. While you can use it to serialize parameter space, its main use is generation and optimization workflows (procedural content, GA-like systems).
301
301
302
302
**Q: Can I persist genes to disk?**
303
303
A: Yes - genes are just arrays of floats. Persist the array (binary or text) and re-load to `Resolve<T>` the same object.
304
304
305
305
**Q: Does it work in Unity?**
306
-
A: Yes - the repo includes Unity-compatible packaging instructions (use Unity Package Manager with the git URL path). ([GitHub][1])
306
+
A: Yes - the repo includes Unity-compatible packaging instructions (use Unity Package Manager with the git URL path).
307
307
308
308
---
309
309
310
310
## License
311
311
312
-
MIT. See `LICENSE` in the repository. ([GitHub][1])
312
+
MIT. See `LICENSE` in the repository.
313
313
314
314
---
315
315
316
316
## Contact & resources
317
317
318
-
* Source repository: PasoUnleashed / Parameterize.Net (see repo for code & examples). ([GitHub][1])
319
-
* NuGet package & versioning: Parameterize.Net on NuGet (current version & supported TFMs). ([NuGet][2])
318
+
* Source repository: PasoUnleashed / Parameterize.Net (see repo for code & examples).
319
+
* NuGet package & versioning: Parameterize.Net on NuGet (current version & supported TFMs).
0 commit comments