EntitySchema.md

December 3, 2024 · View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS

EntitySchema Class

Provide type information about all ITag, IComponent and Script types available in the application.

public sealed class EntitySchema

Inheritance System.Object 🡒 EntitySchema

Properties
ComponentsReturn all component types - structs implementing IComponent.
ComponentTypeByTypeA map to lookup ComponentType's by System.Type.
EngineDependantsList of System.Reflection.Assembly's referencing the Fliox.Engine assembly as dependency.
SchemaTypeByKeyA map to lookup ComponentType's and ScriptType's by ComponentKey.
ScriptsReturn all Script types - classes extending Script
ScriptTypeByTypeA map to lookup ScriptType's by System.Type.
TagsReturn all Tag types - structs implementing ITag.
TagTypeByNameA map to lookup TagType's by TagName.
TagTypeByTypeA map to lookup TagType's by System.Type.
Methods
GetComponentType<T>()Return the ComponentType of a struct implementing IComponent.
GetRelationType<T>()
GetScriptType<T>()Return the ScriptType of a class extending Script.
GetTagType<T>()Return the TagType of a struct implementing ITag.
ToString()