API reference
ChildOf
The hierarchy relation: the entity is a child of ChildOf.Parent. The ChildOf struct of EasyEcs, the C# ECS: its members, parameters and complexity.
public struct ChildOf : IComponent, IIndexed<EntityId>, IIndexed, IEquatable<ChildOf>The hierarchy relation: the entity is a child of ChildOf.Parent. Destroying a parent destroys its children, and theirs (World.Children lists them). An indexed relation like any other: write it with Set, re-parent by setting a new value, detach by removing it.
Constructors
ChildOf
public ChildOf(EntityId Parent);The hierarchy relation: the entity is a child of ChildOf.Parent. Destroying a parent destroys its children, and theirs (World.Children lists them). An indexed relation like any other: write it with Set, re-parent by setting a new value, detach by removing it.
Properties
Key
public EntityId Key { get; }Parent
public EntityId Parent { readonly get; set; }Methods
Deconstruct
public readonly void Deconstruct(out EntityId Parent);Equals
public override readonly bool Equals(object obj);
public readonly bool Equals(ChildOf other);GetHashCode
public override readonly int GetHashCode();ToString
public override string ToString();Operators
operator !=
public static bool operator !=(ChildOf left, ChildOf right);operator ==
public static bool operator ==(ChildOf left, ChildOf right);Edit on GitHub
Last updated on
How is this guide?