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
- {}
-
- public interface INodeWithID:INode
- {
- int ID { get; }
- }
-
- public interface IStructNodeWithID : INode
- {
- int ID { get; set; }
- }
-
- public interface IGroupedStructNodeWithID : IStructNodeWithID
- {
- int groupID { get; set; }
- }
-
- public class NodeWithID: INodeWithID
- {
- 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;
- }
- }
|