コード例 #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)
 {
 }