Esempio n. 1
0
        /// <summary>
        /// 更新 玩家(TeamUpdate時)資料
        /// </summary>
        public byte[] UpdatePlayerData(string account, string miceAll, string team)
        {
            PlayerData playerData = new PlayerData();

            playerData.ReturnCode    = "S400";
            playerData.ReturnMessage = "";

            try
            {
                PlayerDataLogic playerDataLogic = new PlayerDataLogic();
                playerData = playerDataLogic.UpdatePlayerData(account, miceAll, team);
            }
            catch (Exception e)
            {
                playerData.ReturnCode    = "S499";
                playerData.ReturnMessage = "(UI)玩家資料未知例外情況! " + e.Message;
                throw e;
            }
            return(TextUtility.SerializeToStream(playerData));
        }
Esempio n. 2
0
        /// <summary>
        /// 更新 玩家全部資料
        /// </summary>
        public byte[] UpdatePlayerData(string account, byte rank, byte exp, Int16 maxCombo, int maxScore, int sumScore, Int16 sumLost, int sumKill, string item, string miceAll, string team, string friend)
        {
            PlayerData playerData = new PlayerData();

            playerData.ReturnCode    = "S400";
            playerData.ReturnMessage = "";

            try
            {
                PlayerDataLogic playerDataLogic = new PlayerDataLogic();
                playerData = playerDataLogic.UpdatePlayerData(account, rank, exp, maxCombo, maxScore, sumScore, sumLost, sumKill, item, miceAll, team, friend);
            }
            catch (Exception e)
            {
                playerData.ReturnCode    = "S499";
                playerData.ReturnMessage = "(UI)玩家資料未知例外情況! " + e.Message;
                throw e;
            }
            return(TextUtility.SerializeToStream(playerData));
        }