12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System.Collections.Generic;
- using ET;
- using GFGGame;
- namespace GFGGame
- {
- public class StorageSProxy
- {
- //存储
- public static async ETTask ReqSetClientValue(int key, int value)
- {
- M2C_SetClientValue response = null;
- response = (M2C_SetClientValue)await MessageHelper.SendToServer(new C2M_SetClientValue() { Key = key, Value = value });
- if (response != null)
- {
- if (response.Error == ErrorCode.ERR_Success)
- {
- }
- }
- }
- //获取
- public static async ETTask ReqGetClientValues(int chapterId, int buyType, int buyCount)
- {
- M2C_GetClientValues response = null;
- response = (M2C_GetClientValues)await MessageHelper.SendToServer(new C2M_GetClientValues() { });
- if (response != null)
- {
- if (response.Error == ErrorCode.ERR_Success)
- {
- }
- }
- }
- }
- }
|