Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- namespace Svelto.ECS
- {
- public interface INode
- {
- int ID { get; }
- }
-
- public interface IGroupedNode
- {
- int groupID { get; set; }
- }
-
- public interface IStructNodeWithID : INode
- {
- new int ID { get; set; }
- }
-
- public class NodeWithID: INode
- {
- public static TNodeType BuildNode<TNodeType>(int ID) where TNodeType: NodeWithID, new()
- {
- return new TNodeType { _ID = ID };
- }
-
- public int ID { get { return _ID; } }
-
- protected int _ID;
- }
- }
|