12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System;
- using ET;
- namespace GFGGame
- {
- public class GMController
- {
- public static async ETTask GetAllDressUpItem()
- {
- GetSuitItemController.enable = false;
- //获得所有换装部件
- var errorCode = await GMHelper.SendGMToServer("get all dressup");
- GetSuitItemController.enable = true;
- if (errorCode != ET.ErrorCode.ERR_Success)
- {
- ErrorCodeController.Handler(errorCode);
- return;
- }
- PromptController.Instance.ShowFloatTextPrompt("已获得所有服装", MessageType.SUCCESS);
- }
- public static async ETTask GetAllCardItem()
- {
- //获得所有卡牌部件
- var errorCode = await GMHelper.SendGMToServer("get all card");
- if (errorCode != ET.ErrorCode.ERR_Success)
- {
- ErrorCodeController.Handler(errorCode);
- return;
- }
- PromptController.Instance.ShowFloatTextPrompt("已获得所有卡牌", MessageType.SUCCESS);
- }
- public static async ETTask<bool> SendGMCommand(string messageGM, string messageSuc)
- {
- var errorCode = await GMHelper.SendGMToServer(messageGM);
- if (errorCode != ET.ErrorCode.ERR_Success)
- {
- ErrorCodeController.Handler(errorCode);
- return false;
- }
- InstanceZonesSProxy.GetInstanceZonesInfos().Coroutine();
- MainStorySProxy.GetStoryInfos().Coroutine();
- PromptController.Instance.ShowFloatTextPrompt(messageSuc, MessageType.SUCCESS);
- return true;
- }
- }
- }
|