private void ProcessActions() { this._actions.Switch(); _DTO_action_info[] actions = new _DTO_action_info[this._actions.count]; int i = 0; while (!this._actions.isEmpty) { actions[i++] = this._actions.Pop(); } this.Brocast(CGProtoMgr._PACKET_BATTLE_GC_FRAME(actions, this._frame)); }
private void ProcessClientEvent(SocketEvent e) { switch (e.type) { case SocketEvent.Type.Connect: // make RPC calls for (int i = 0; i < 10; i++) { NetworkManager.Send(CLIENT_NAME, CGProtoMgr._PACKET_TEST_CG_RPC("test"), (token, packet) => { _PACKET_TEST_GC_RPC p = ( _PACKET_TEST_GC_RPC )packet; Logger.Log(p.dto.value); }); } break; } }