70 lines
1.7 KiB
C#
70 lines
1.7 KiB
C#
// ***********************************************************************
|
|
// Assembly : Game
|
|
// Author : Kimch
|
|
// Created : 2021-05-02
|
|
// Description :
|
|
// Last Modified By :
|
|
// Last Modified On :
|
|
// ***********************************************************************
|
|
// <copyright file= "Callback" company="Kunpo"></copyright>
|
|
// <summary></summary>
|
|
// ***********************************************************************
|
|
|
|
namespace G
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
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;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static class ErrorMessage
|
|
{
|
|
public const string SUCCESS = "";
|
|
|
|
public const string AD_TIMES_NOT_ENOUGH = "今日广告次数不足,请明日再来";
|
|
}
|
|
|
|
/// <summary>
|
|
/// 通用回调
|
|
/// </summary>
|
|
public delegate void Callback();
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="error">错误码 > 0</param>
|
|
public delegate void Callback1(int error);
|
|
|
|
/// <summary>
|
|
/// 通用错误信息回调
|
|
/// </summary>
|
|
/// <param name="error"></param>
|
|
/// <param name="msg">msg</param>
|
|
public delegate void Callback2(int error, string msg);
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="error"></param>
|
|
/// <param name="msg"></param>
|
|
/// <param name="data"></param>
|
|
public delegate void Callback3(int error, string msg, object data);
|
|
}
|