Beispiel #1
0
 public void Fire(RpcMessage message)
 {
     if (message.Target != null)
     {
         message.Target.TriggerEvent(message.Event, message.Build());
     }
     else
     {
         BaseScript.TriggerClientEvent(message.Event, message.Build());
     }
 }
Beispiel #2
0
        public void Fire(RpcMessage message)
        {
            //Server.Log($"Fire: \"{message.Event}\" with {message.Payloads.Count} payload(s):");

            if (message.Target != null)
            {
                message.Target.TriggerEvent(message.Event, message.Build());
            }
            else
            {
                BaseScript.TriggerClientEvent(message.Event, message.Build());
            }
        }
Beispiel #3
0
        public void Fire(RpcMessage message)
        {
            //Client.Log($"Fire: \"{message.Event}\" with {message.Payloads.Count} payload(s):");

            BaseScript.TriggerServerEvent(message.Event, message.Build());
        }