public override void ProcessEvent(MsgBase tmpMsg) { switch (tmpMsg.msgId) { case (ushort)TabToyEvent.TableCharactorGet: { TableCharactorMsg tmp = (TableCharactorMsg)tmpMsg; CharactorDefine tmpsampleDefine = GetCharactorDefine(tmp.id); tmp.msgId = (ushort)TabToyEvent.TableCharactorBack; tmp.charactorDefine = tmpsampleDefine; SendMsg(tmp); } break; default: break; } }
public TableCharactorMsg(int _id, CharactorDefine _charactorDefine) { id = _id; charactorDefine = _charactorDefine; }