Beispiel #1
0
        /*
         * public new static void PrintUpdateBattleInventoryInTownMessage(UpdateBattleInventoryInTownMessage msg, object tag) {
         *  MessagePrinter.PrintUpdateBattleInventoryInTownMessage(msg, tag);
         *  FrontendConnect fc = (FrontendConnect)tag;
         *  if (fc.State == LoginState.WaitUpdateBattleInventoryInTown) {
         *      fc.State = LoginState.SendHotSpringRequestInfo;
         *  }
         * }
         * public new static void PrintHotSpringRequestInfoResultMessage(HotSpringRequestInfoResultMessage msg, object tag) {
         *  MessagePrinter.PrintHotSpringRequestInfoResultMessage(msg, tag);
         *  FrontendConnect fc = (FrontendConnect)tag;
         *  if (fc.State == LoginState.WaitHotSpringRequestInfoResult) {
         *      fc.State = LoginState.MovePartition;
         *  }
         * }
         */
        public new static void PrintNpcTalkMessage(NpcTalkMessage msg, object tag)
        {
            MessagePrinter.PrintNpcTalkMessage(msg, tag);
            FrontendConnect fc = (FrontendConnect)tag;

            if (fc.State == LoginState.WaitNpcTalkTrade)
            {
                fc.State = LoginState.ContinueSearch;
            }
            else if (fc.State == LoginState.WaitNpcInnTalk)
            {
                fc.State = LoginState.QueryNpcTalkTrade;
            }
        }