Пример #1
0
 protected void HandleComponentMessage(IncomingEntityComponentMessage message, NetConnection client)
 {
     if (GetComponentFamilies().Contains(message.ComponentFamily))
     {
         GetComponent <Component>(message.ComponentFamily).HandleNetworkMessage(message, client);
     }
 }
Пример #2
0
 protected void HandleComponentMessage(IncomingEntityComponentMessage message, NetConnection client)
 {
     if (_netIDs.TryGetValue(message.NetID, out IComponent component))
     {
         component.HandleNetworkMessage(message, client);
     }
 }
Пример #3
0
 public virtual void HandleNetworkMessage(IncomingEntityComponentMessage message)
 {
 }
Пример #4
0
 /// <summary>
 /// Empty method for handling incoming input messages from counterpart server/client components
 /// </summary>
 /// <param name="message">the message object</param>
 public virtual void HandleNetworkMessage(IncomingEntityComponentMessage message, NetConnection sender)
 {
 }