Authored Unity primitive/object-model shim, VFX layer (control-flow-preserving, InstantVfx never invokes its action -- headless suppression), god-object stubs (GameMgr/EffectMgr/UIManager with faithfully-extracted nested enums), View/UI/Touch tree, LitJson+BetterList+Tuple copied, third-party stubs. Discovered Roslyn header-error masking: fixing class-header type errors unmasks body references, so the true copy closure is ~2570 files (was 782 under masking). Errors: masked-25720 -> 268; our shim files compile clean. Remaining: ~50 residual shim/external types, 24 NGUI UI-base overrides, static-type fixes, plus likely 1-2 more unmask waves.
191 lines
3.8 KiB
C#
191 lines
3.8 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace Cute;
|
|
|
|
public static class CuteNetworkDefine
|
|
{
|
|
public enum ApiType
|
|
{
|
|
SignUp,
|
|
GameStartCheck,
|
|
CheckSpecialTitle,
|
|
PaymentItemList,
|
|
PaymentStart,
|
|
PaymentCancel,
|
|
PaymentFinish,
|
|
PaymentSendLog,
|
|
PaymentPCItemList,
|
|
PaymentPCStart,
|
|
PaymentPCCancel,
|
|
PaymentPCFinish,
|
|
SteamGetUserInfo,
|
|
SteamMicroTxnInit,
|
|
BirthUpdate,
|
|
AccountMigration,
|
|
GetGameDataBySocialAccount,
|
|
GetTransitionCode,
|
|
TransitionCodeMigration,
|
|
GetGameDataByTransitionCode,
|
|
GetFacebookNonce,
|
|
CheckiCloudUser,
|
|
MigrateiCloudUser
|
|
}
|
|
|
|
public enum ACCOUNT_TYPE
|
|
{
|
|
NONE,
|
|
GOOGLE_PLAY,
|
|
GAME_CENTER,
|
|
FACEBOOK,
|
|
DMM,
|
|
STEAM,
|
|
APPLE_ID
|
|
}
|
|
|
|
public enum CONNECT_TYPE
|
|
{
|
|
SOCIAL_ACCOUNT_CONNECT = 1,
|
|
SOCIAL_ACCOUNT_DISCONNECT,
|
|
SOCIAL_ACCOUNT_GAME_DATA_UPDATE,
|
|
TRANS_CODE_GAME_DATA_UPDATE
|
|
}
|
|
|
|
public const int API_RESULT_SUCCESS_CODE = 1;
|
|
|
|
public const int RESULT_CODE_DATABASE_ERROR = 100;
|
|
|
|
public const int RESULT_CODE_MAINTENANCE_COMMON = 101;
|
|
|
|
public const int RESULT_CODE_SERVER_ERROR = 102;
|
|
|
|
public const int API_RESULT_SESSION_ERROR = 201;
|
|
|
|
public const int RESULT_CODE_ACCOUNT_BLOCK_ERROR = 203;
|
|
|
|
public const int RESULT_CODE_ACCOUNT_LIMITED_BLOCK_ERROR = 217;
|
|
|
|
public const string ACCOUNT_LIMITED_BLOCK_END_TIME = "account_block_end_time";
|
|
|
|
public const int RESULT_CODE_NETEASE_ACCOUNT_BLOCK_ERROR = 330;
|
|
|
|
public const int API_RESULT_VERSION_ERROR = 204;
|
|
|
|
public const int RESULT_CODE_PROCESSED_ERROR = 213;
|
|
|
|
public const int RESULT_CODE_PAYMENT_VALIDATION_ERROR = 308;
|
|
|
|
public const int RESULT_CODE_DMM_ONETIMETOKEN_EXPIRED = 317;
|
|
|
|
public const int RESULT_CODE_SOLO_PLAY_ALREADY_FINISH = 1352;
|
|
|
|
public const int RESULT_CODE_MAINTENANCE_FROM = 2000;
|
|
|
|
public const int RESULT_CODE_MAINTENANCE_TO = 2999;
|
|
|
|
public const string MAINTENACE_END_TIME = "maintenance_end_time";
|
|
|
|
public const int RESULT_CODE_MAINTENANCE_CARD_TWO_PICK = 1710;
|
|
|
|
public const int RESULT_CODE_MAINTENANCE_CARD_OPEN_SIX = 5013;
|
|
|
|
public const int RESULT_CODE_ALREADY_BATTLE_RESULT = 3502;
|
|
|
|
public const int RC_OPEN_ROOM_SET_DECK_IN_BATTLE_PHASE = 1768;
|
|
|
|
public static Dictionary<ApiType, string> ApiUrlList = new Dictionary<ApiType, string>
|
|
{
|
|
{
|
|
ApiType.SignUp,
|
|
"tool/signup"
|
|
},
|
|
{
|
|
ApiType.CheckSpecialTitle,
|
|
"check/special_title"
|
|
},
|
|
{
|
|
ApiType.GameStartCheck,
|
|
"check/game_start"
|
|
},
|
|
{
|
|
ApiType.PaymentItemList,
|
|
"payment/item_list"
|
|
},
|
|
{
|
|
ApiType.PaymentStart,
|
|
"payment/start"
|
|
},
|
|
{
|
|
ApiType.PaymentCancel,
|
|
"payment/cancel"
|
|
},
|
|
{
|
|
ApiType.PaymentFinish,
|
|
"payment/finish"
|
|
},
|
|
{
|
|
ApiType.PaymentSendLog,
|
|
"payment/send_log"
|
|
},
|
|
{
|
|
ApiType.PaymentPCItemList,
|
|
"payment_pc/item_list"
|
|
},
|
|
{
|
|
ApiType.PaymentPCStart,
|
|
"payment_pc/start"
|
|
},
|
|
{
|
|
ApiType.PaymentPCCancel,
|
|
"payment_pc/cancel"
|
|
},
|
|
{
|
|
ApiType.PaymentPCFinish,
|
|
"payment_pc/finish"
|
|
},
|
|
{
|
|
ApiType.SteamGetUserInfo,
|
|
"payment_pc/steam_get_user_info"
|
|
},
|
|
{
|
|
ApiType.SteamMicroTxnInit,
|
|
"payment_pc/steam_micro_txn_init"
|
|
},
|
|
{
|
|
ApiType.BirthUpdate,
|
|
"account/update_birth"
|
|
},
|
|
{
|
|
ApiType.AccountMigration,
|
|
"account/chain_by_social_account"
|
|
},
|
|
{
|
|
ApiType.GetGameDataBySocialAccount,
|
|
"account/get_by_social_account"
|
|
},
|
|
{
|
|
ApiType.GetTransitionCode,
|
|
"account/publish_transition_code"
|
|
},
|
|
{
|
|
ApiType.TransitionCodeMigration,
|
|
"account/chain_by_transition_code"
|
|
},
|
|
{
|
|
ApiType.GetGameDataByTransitionCode,
|
|
"account/get_by_transition_code"
|
|
},
|
|
{
|
|
ApiType.GetFacebookNonce,
|
|
"account/get_facebook_nonce"
|
|
},
|
|
{
|
|
ApiType.CheckiCloudUser,
|
|
"account/get_by_icloud_data"
|
|
},
|
|
{
|
|
ApiType.MigrateiCloudUser,
|
|
"account/chain_by_icloud_data"
|
|
}
|
|
};
|
|
}
|