Exemple #1
0
    public override void ProcessEvent(MsgBase tmpMsg)
    {
        switch (tmpMsg.msgId)
        {
        case (ushort)TabToyEvent.TableTestGetSample:
        {
            TableTestMsg tmp = (TableTestMsg)tmpMsg;

            SampleDefine tmpsampleDefine = GetSampleDefineById(tmp.sampleDefineId);

            tmp.msgId        = (ushort)TabToyEvent.TableTestBackSample;
            tmp.sampleDefine = tmpsampleDefine;

            SendMsg(tmp);
        }
        break;

        case (ushort)TabToyEvent.TableTestGetBlongs:
        {
            TableTestMsg tmp = (TableTestMsg)tmpMsg;

            BlongsDefine tmpsampleDefine = GetBlongsDefineById(tmp.blongsDefineId);

            tmp.msgId        = (ushort)TabToyEvent.TableTestBackBlongs;
            tmp.blongsDefine = tmpsampleDefine;
            SendMsg(tmp);
        }
        break;
        }
    }
Exemple #2
0
 public TableTestMsg(int _sampleDefineId, SampleDefine _sampleDefine, int _blongsDefineId, BlongsDefine _blongsDefine)
 {
     sampleDefineId = _sampleDefineId;
     sampleDefine   = _sampleDefine;
     blongsDefineId = _blongsDefineId;
     blongsDefine   = _blongsDefine;
 }