Esempio n. 1
0
 public ComponentReadMessage(int entityId, IComponentReader reader)
 {
     EntityId = entityId;
     Reader   = reader;
 }
Esempio n. 2
0
 public ComponentsController(IComponentReader reader, IComponentWriter writer) : base(reader, writer)
 {
     _reader = reader ?? throw new ArgumentNullException(nameof(reader));
     _writer = writer ?? throw new ArgumentNullException(nameof(writer));
 }
Esempio n. 3
0
 /// <summary>
 /// The method adds a new component reader.
 /// </summary>
 /// <param name="name">the name of adding component</param>
 /// <param name="component">an adding component</param>
 protected void Add(string name, IComponentReader component)
 {
     this.components.Add(name, component);
 }
Esempio n. 4
0
 public QueryComponentsMessage(uint entityId, IComponentReader reader)
 {
     EntityId = entityId;
     Reader   = reader;
 }