예제 #1
0
 /// <summary>
 ///     Sends a message to all other components in this entity.
 ///     This is an alias of 'Owner.SendMessage(this, message);'
 /// </summary>
 /// <param name="message">Message to send.</param>
 protected void SendMessage(ComponentMessage message)
 {
     Owner.SendMessage(this, message);
 }
예제 #2
0
 /// <summary>
 ///     Sends a message over the network to all other components on the networked entity. This works both ways.
 ///     This is an alias of 'Owner.SendNetworkMessage(this, message);'
 /// </summary>
 /// <param name="message">Message to send.</param>
 protected void SendNetworkMessage(ComponentMessage message, INetChannel channel = null)
 {
     Owner.SendNetworkMessage(this, message, channel);
 }
예제 #3
0
 /// <inheritdoc />
 public virtual void HandleMessage(ComponentMessage message, INetChannel netChannel = null, IComponent component = null)
 {
 }
예제 #4
0
 /// <inheritdoc />
 public virtual void HandleMessage(object owner, ComponentMessage message)
 {
 }