Unresolved.md
February 25, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS
Unresolved Struct
Unresolved is a container for unresolved entity components.
public struct Unresolved :
Friflo.Engine.ECS.IComponent
Implements IComponent
Remarks
An Unresolved component is added to an Entity by DataEntityToEntity(DataEntity, EntityStore, string) if:
- A component in DataEntity.components cannot be resolved to an IComponent or Script type.
- A tag in DataEntity.tags cannot be resolved to an ITag type.
The Unresolved component enables conversion of a DataEntity to an Entity and vice versa
with components or tags that cannot be resolved to ITag, IComponent and Script types.
Having support Unresolved component or tag types: - Ensures the ability to use an EntityStore containing unresolved types without being blocked by a missing fix.
- Prevents data loss of tags or components when storing an EntityStore with entities containing unresolved tag or component types.
The reason for unresolved tag or component types can be:
- Missed to merge C# code containing an ITag, an IComponent or Script type definition.
- Intentionally when creating an EntityStore with external tools without the need to wait for the implementation of new
ITag, an IComponent or Script type definitions.
| Fields | |
|---|---|
| components | |
| tags |
| Methods | |
|---|---|
| ToString() |