Beispiel #1
0
        public void MessageReceive(NetFrame.UserToken token, NetFrame.auto.SocketModel message)
        {
            switch (message.Command)
            {
            case FightProtocol.ENTER_CREQ:
                enterBattle(token);
                break;

            case FightProtocol.MOVE_CREQ:
                move(token, message.GetMessage <MoveDTO>());
                break;

            case FightProtocol.ATTACK_CREQ:
                attack(token, message.GetMessage <int>());
                break;

            case FightProtocol.DAMAGE_CREQ:
                damage(token, message.GetMessage <DamageDTO>());
                break;

            case FightProtocol.SKILL_UP_CREQ:
                skillUp(token, message.GetMessage <int>());
                break;

            case FightProtocol.SKILL_CREQ:
                skill(token, message.GetMessage <SkillAttackModel>());
                break;
            }
        }
Beispiel #2
0
 public void MessageReceive(NetFrame.UserToken token, NetFrame.auto.SocketModel message)
 {
     switch (message.command)
     {
     case ExploreProtocol.INPUT_CREQ:
         Input(message.GetMessage <byte[]>());
         break;
     }
 }
        public void MessageReceive(NetFrame.UserToken token, NetFrame.auto.SocketModel message)
        {
            switch (message.command)
            {
            case SelectProtocol.ENTER_CREQ:
                enter(token);
                break;

            case SelectProtocol.SELECT_CREQ:
                select(token, message.GetMessage <int>());
                break;

            case SelectProtocol.TALK_CREQ:
                talk(token, message.GetMessage <string>());
                break;

            case SelectProtocol.READY_CREQ:
                ready(token);
                break;
            }
        }