/// <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); }
/// <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); }
/// <inheritdoc /> public virtual void HandleMessage(ComponentMessage message, INetChannel netChannel = null, IComponent component = null) { }
/// <inheritdoc /> public virtual void HandleMessage(object owner, ComponentMessage message) { }