Пример #1
0
        public virtual void rpc_event_notify(ServerGameEventNotify ntf)
        {
            var emsg = EventMessage.FromBytes(ntf.EventMessageData);

            if (ntf.Broadcast)
            {
                foreach (var node in zoneNodes)
                {
                    node.Value.EventMgr?.OnReceiveMessage(emsg);
                }
            }
            else
            {
                var mgr = EventManagerFactory.Instance.GetEventManager(ntf.To);
                mgr?.OnReceiveMessage(emsg);
            }
        }
Пример #2
0
 public virtual void rpc_event_notify(ServerGameEventNotify ntf)
 {
     EventMgr?.OnReceiveMessage(EventMessage.FromBytes(ntf.EventMessageData));
 }