csharp
public sealed class GameSystemDeclarationOne system a project declared: what it is, what it needs, and how to build it.
Remarks
⚠ The factory is emitted, not reflected. GameSystemGenerator writes a lambda that calls the constructor with the arguments cast to their declared types, so there is no ConstructorInfo.Invoke anywhere in this path. That is the same reason ServiceRegistry is not a DI container: under NativeAOT the reflective version does not work at all, and the emitted one is shorter as well as faster.
Fields and properties (3)
public Type SystemTypeThe system's type.
public string NameIts short name, which is what a report calls it.
public IReadOnlyList<Type> RequiresThe services its constructor takes, in order, by the type it declared them as.
Methods (2)
Used by (6)
- VillageRunAiVillage.Agent.Tests
- VillageTestsAiVillage.Agent.Tests
- GameSystemRegistryVixen.Engine
- GameSystemTestsVixen.Engine.Tests
- GameSystemsVixen.Engine
- SystemsRunnerVixen.Cli