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); } }
public virtual void rpc_event_notify(ServerGameEventNotify ntf) { EventMgr?.OnReceiveMessage(EventMessage.FromBytes(ntf.EventMessageData)); }