// *********************************************************************** // Assembly : Game // Author : Kimch // Created : 2021-05-02 // Description : // Last Modified By : // Last Modified On : // *********************************************************************** // // // *********************************************************************** namespace G { /// /// /// public static class ErrorCode { public const int SUCCESS = 0; public const int MONEY_NOT_ENOUGH = 300000; public const int REWARD_EMPTY = 300001; public const int AD_TIMES_NOT_ENOUGH = 300002; public const int TIME_OFFLINE = 4000001; public const int TIME_CHEAT = 4000002; public const int MEMORY_CHEAT = 4000010; public const int NETWORK_ERROR = 5000010; public const int SERVER_ERROR = 5000020; } /// /// /// public static class ErrorMessage { public const string SUCCESS = ""; public const string AD_TIMES_NOT_ENOUGH = "今日广告次数不足,请明日再来"; } /// /// 通用回调 /// public delegate void Callback(); /// /// /// /// 错误码 > 0 public delegate void Callback1(int error); /// /// 通用错误信息回调 /// /// /// msg public delegate void Callback2(int error, string msg); /// /// /// /// /// /// public delegate void Callback3(int error, string msg, object data); }