static void ReceviceStartSyncMsg(InputNetworkMessageEvent e) { Protocol.StartSyncMsg msg = new Protocol.StartSyncMsg(); msg.frame = (int)e.Data["frame"]; msg.intervalTime = (int)e.Data["intervaltime"]; GlobalEvent.DispatchTypeEvent(msg); }
public static void SendMsg(this SyncSession session, Protocol.StartSyncMsg msg) { Dictionary <string, object> data = new Dictionary <string, object>(); data.Add("frame", msg.frame); data.Add("intervaltime", msg.intervalTime); session.SendMsg("startsyncmsg", data); }
static void ReceviceStartSyncMsg(SyncSession session, ProtocolRequestBase e) { Protocol.StartSyncMsg msg = new Protocol.StartSyncMsg(); msg.frame = (int)e.m_data["frame"]; msg.intervalTime = (int)e.m_data["intervaltime"]; EventService.DispatchTypeEvent(session, msg); }
static void SendStartSyncMsg(IProtocolMessageInterface msg) { Protocol.StartSyncMsg e = (Protocol.StartSyncMsg)msg; Dictionary <string, object> data = new Dictionary <string, object>(); data.Add("frame", e.frame); data.Add("intervaltime", e.intervalTime); NetworkManager.SendMessage("startsyncmsg", data); }
static void ReceviceStartSyncMsg(SyncSession session, ProtocolRequestBase e) { Protocol.StartSyncMsg msg = new Protocol.StartSyncMsg(); msg.frame = (int)e.m_data["frame"]; msg.advanceCount = (int)e.m_data["advancecount"]; msg.intervalTime = (int)e.m_data["intervaltime"]; msg.createEntityIndex = (int)e.m_data["createentityindex"]; msg.SyncRule = (SyncRule)e.m_data["syncrule"]; EventService.DispatchTypeEvent(session, msg); }
static void SendStartSyncMsg(SyncSession session, Protocol.StartSyncMsg msg) { Dictionary <string, object> data = new Dictionary <string, object>(); data.Add("frame", msg.frame); data.Add("advancecount", msg.advanceCount); data.Add("intervaltime", msg.intervalTime); data.Add("createentityindex", msg.createEntityIndex); data.Add("syncrule", (int)msg.SyncRule); session.SendMsg("startsyncmsg", data); }
static void ReceviceStartSyncMsg(InputNetworkMessageEvent e) { Protocol.StartSyncMsg msg = new Protocol.StartSyncMsg(); msg.frame = (int)e.Data["frame"]; msg.advanceCount = (int)e.Data["advancecount"]; msg.intervalTime = (int)e.Data["intervaltime"]; msg.createEntityIndex = (int)e.Data["createentityindex"]; msg.SyncRule = (SyncRule)e.Data["syncrule"]; GlobalEvent.DispatchTypeEvent(msg); }
static void SendStartSyncMsg(IProtocolMessageInterface msg) { Protocol.StartSyncMsg e = (Protocol.StartSyncMsg)msg; Dictionary <string, object> data = new Dictionary <string, object>(); data.Add("frame", e.frame); data.Add("advancecount", e.advanceCount); data.Add("intervaltime", e.intervalTime); data.Add("createentityindex", e.createEntityIndex); data.Add("syncrule", (int)e.SyncRule); NetworkManager.SendMessage("startsyncmsg", data); }