317 lines
9.3 KiB
C#
317 lines
9.3 KiB
C#
// ***********************************************************************
|
|
// Assembly : Game
|
|
// Author : Kimch
|
|
// Created : 2020-08-28
|
|
// Description :
|
|
// Last Modified By :
|
|
// Last Modified On :
|
|
// ***********************************************************************
|
|
// <copyright file= "GlobalDefine" company="Kimch"></copyright>
|
|
// <summary></summary>
|
|
// ***********************************************************************
|
|
namespace G
|
|
{
|
|
/// <summary>
|
|
/// 全局定义
|
|
/// </summary>
|
|
public static class GlobalDefine
|
|
{
|
|
#region 事件通知
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_MONEY_CHANGED = 1;
|
|
public const int EVENT_GRADE_CHANGED = 2;
|
|
public const int EVENT_NAME_CHANGED = 3;
|
|
public const int EVENT_REDPOINT_STATE_CHANGED = 7;
|
|
|
|
//每日
|
|
public const int EVENT_DAILY_LOGIN = 8;
|
|
//每周
|
|
public const int EVENT_WEEKLY_LOGIN = 9;
|
|
/// <summary>
|
|
/// 游戏界面事件
|
|
/// </summary>
|
|
public const int EVENT_WINDOW_OPENED = 11;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_WINDOW_CLOSED = 12;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_BUTTON_CLICK = 13;
|
|
/// <summary>
|
|
/// 打开界面
|
|
/// </summary>
|
|
public const int EVENT_OPEN_WINDOW = 14;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_SHOW_TOAST = 15;
|
|
//主界面相关
|
|
/// <summary>
|
|
/// 主界面事件
|
|
/// </summary>
|
|
public const int EVENT_MAIN_WINDOW = 16;
|
|
|
|
public const int EVENT_MAIN_WINDOW_PAGE = 18;
|
|
public const int EVENT_MAIN_WINDOW_FUNCTION = 19;
|
|
|
|
/// <summary>
|
|
/// 游戏界面事件
|
|
/// </summary>
|
|
public const int EVENT_GAME_WINDOW = 20;
|
|
/// <summary>
|
|
/// 打开结算结果
|
|
/// </summary>
|
|
public const int EVENT_SETTLE_RESULT = 21;
|
|
|
|
/// <summary>
|
|
/// 剧情
|
|
/// </summary>
|
|
public const int EVENT_STORY_START = 30;
|
|
public const int EVENT_STORY_FINISH = 31;
|
|
public const int EVENT_STORY_ACTION = 32;
|
|
|
|
//红颜
|
|
public const int EVENT_BEAUTY_WINDOW = 40;
|
|
public const int EVENT_BEAUTY_GIFT = 41;
|
|
public const int EVENT_BEAUTY_SKIN = 42;
|
|
|
|
public const int EVENT_SWORD_CLICK = 45;
|
|
|
|
//广告
|
|
public const int EVENT_PLAY_AD_SUCCESS = 61;
|
|
public const int EVENT_PLAY_AD_ERROR = 62;
|
|
public const int EVENT_PLAY_AD_SKIP = 63;
|
|
|
|
public const int EVENT_AD_LOADING = 64;
|
|
public const int EVENT_AD_LOAD_SUCCESS = 65;
|
|
public const int EVENT_AD_LOAD_ERROR = 66;
|
|
|
|
//支付
|
|
public const int EVENT_PAY_SUCCESS = 67;
|
|
public const int EVENT_PAY_FAILURE = 68;
|
|
public const int EVENT_PAY_CANCEL = 69;
|
|
|
|
//加资源
|
|
public const int EVENT_CHECK_ASSET = 70;
|
|
public const int EVENT_UPDATE_ASSET = 71;
|
|
public const int EVENT_DOWNLOAD_ASSET = 72;
|
|
public const int EVENT_LOAD_ASSET = 73;
|
|
public const int EVENT_LOGIN_STATE = 74;
|
|
|
|
//邮件
|
|
public const int EVENT_MAIL_CHANGED = 80;
|
|
public const int EVENT_MAIL_SELECTED = 81;
|
|
|
|
//宠物
|
|
public const int EVENT_PET_SELECTED = 90;
|
|
public const int EVENT_PET_SKILL_LOCKED = 91;
|
|
|
|
public const int EVENT_VIP_CHANGED = 101;
|
|
|
|
public const int EVENT_NETWORK_PACKET = 10000;
|
|
/// <summary>
|
|
/// 角色属性
|
|
/// </summary>
|
|
public const int EVENT_PLAYER_ATTRIBUTES_CHANGED = 110;
|
|
/// <summary>
|
|
/// 角色装备改变
|
|
/// </summary>
|
|
public const int EVENT_PLAYER_EQUIPMENT_CHANGED = 111;
|
|
|
|
public const int EVENT_PLAYER_AVATAR_CHANGED = 113;
|
|
public const int EVENT_PLAYER_AVATAR_SELECTED = 115;
|
|
|
|
/// <summary>
|
|
/// 装备获得
|
|
/// </summary>
|
|
public const int EVENT_EQUIPMENT_GET = 121;
|
|
/// <summary>
|
|
/// 装备出售
|
|
/// </summary>
|
|
public const int EVENT_EQUIPMENT_SELL = 122;
|
|
/// <summary>
|
|
/// 背包已满
|
|
/// </summary>
|
|
public const int EVENT_EQUIPMENT_FULL = 123;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_EQUIPMENT_LOCK = 124;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_EQUIPMENT_SUIT = 125;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_EQUIPMENT_SLOT_SELECT = 126;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_EQUIPMENT_SELECT = 127;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_GEM_CHANGED = 128;
|
|
public const int EVENT_GEM_FILTER_CHANGED = 129;
|
|
public const int EVENT_PROP_CHANGED = 120;
|
|
|
|
/// <summary>
|
|
/// 学习功夫
|
|
/// </summary>
|
|
public const int EVENT_KUNGFU_STUDY = 141;
|
|
public const int EVENT_KUNGFU_DETAIL = 142;
|
|
public const int EVENT_BOOK_ARRANGE = 143;
|
|
|
|
|
|
/// <summary>
|
|
/// 关卡信息
|
|
/// </summary>
|
|
public const int EVENT_LEVEL_COMPLETED = 151;
|
|
public const int EVENT_LEVEL_INFO_CHANGED = 155;
|
|
public const int EVENT_LEVEL_ITEM_SHOW = 156;
|
|
public const int EVENT_LEVEL_TIPS = 157;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_SKILL_CARD_STATE_CHANGED = 161;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_SKILL_CARD_SELECTED = 162;
|
|
|
|
/// <summary>
|
|
/// 任务状态变更
|
|
/// </summary>
|
|
public const int EVENT_MISSION_CHANGED = 170;
|
|
public const int EVENT_MISSION_COMPLETED = 171;
|
|
|
|
public const int EVENT_SHOP_SLOT_CHANGED = 181;
|
|
public const int EVENT_SHOP_PET_BOX_CHANGED = 182;
|
|
public const int EVENT_SHOP_GIFT_BOX_CHANGED = 183;
|
|
//七日签到
|
|
public const int EVENT_SENVEN_SIGNIN = 191;
|
|
|
|
|
|
/// <summary>
|
|
/// 关卡状态事件
|
|
/// </summary>
|
|
public const int EVENT_LEVEL_SCENE = 201;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_LEVEL_STATE = 202;
|
|
/// <summary>
|
|
/// 关卡状态事件
|
|
/// </summary>
|
|
public const int EVENT_STAGE_STATE = 203;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_SKILL_STATE = 210;
|
|
/// <summary>
|
|
/// 血量提醒
|
|
/// </summary>
|
|
public const int EVENT_BATTLE_STAGE_HINT = 220;
|
|
/// <summary>
|
|
/// combo 状态
|
|
/// </summary>
|
|
public const int EVENT_COMBO_STATE = 221;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_HOLD_STATE = 231;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_SHOW_EFFECT = 241;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_SHOW_TEXT_EFFECT = 242;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_SHOW_LVUP_EFFECT = 243;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_SHOW_BUFF = 251;
|
|
public const int EVENT_OPEN_BUFF = 252;
|
|
public const int EVENT_CLOSE_BUFF = 253;
|
|
|
|
/// <summary>
|
|
/// 副本杀敌
|
|
/// </summary>
|
|
public const int EVENT_COPY_KILLER = 300;
|
|
/// <summary>
|
|
/// 副本奖励道具
|
|
/// </summary>
|
|
public const int EVENT_COPY_PROP = 301;
|
|
/// <summary>
|
|
/// 副本进度
|
|
/// </summary>
|
|
public const int EVENT_COPY_COMPLETE = 302;
|
|
/// <summary>
|
|
/// 副本受伤
|
|
/// </summary>
|
|
public const int EVENT_COPY_INJURED = 303;
|
|
public const int EVENT_COPY_END = 304;
|
|
|
|
|
|
//游戏内相关事件
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public const int EVENT_INGAME_GET_ITEM = 500;
|
|
|
|
//packetId
|
|
public const int PACKET_ID_MAIL_GET_ALL = 200000;
|
|
public const int PACKET_ID_GET_INVITE_COUNT = 200001;
|
|
public const int PACKET_ID_GET_INVITE_LIST = 200002;
|
|
|
|
#endregion
|
|
|
|
#region 常量
|
|
|
|
public const long INVALID_GUID = -1;
|
|
public const int INVALID_ID = -1;
|
|
|
|
public const string KEY_NEW = "new";
|
|
public const string KEY_VIP = "vip";
|
|
public const string KEY_ENERGY_MAX = "energy_max";
|
|
public const string KEY_MOTILITY_MAX = "mot_max";
|
|
|
|
public const string KEY_UNIQUE_ID = "unique_id";
|
|
|
|
public const string KEY_MAX_COMPLETED_LEVEL_ID = "level";
|
|
public const string KEY_MAX_ENDLESS_LEVEL_STAGE = "end_level";
|
|
|
|
public const string KEY_OFFLINE_TIMESTAMP = "o_t";
|
|
|
|
|
|
public const int COST_MONEY_EQUIPMENT_RECAST = 10;
|
|
public const int COST_MONEY_UPGRADE_GEM = 10;
|
|
|
|
public const int COST_MONEY_BATTLE_PASS = 11;
|
|
public const int COST_MONEY_WOMEN_AT = 12;
|
|
|
|
public const int COST_MONEY_BUY_COIN = 300000;
|
|
|
|
public const int COST_MONEY_PROP_BOX = 1000000;
|
|
public const int COST_MONEY_PROP_BOX_TEN = 2000000;
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
public const string BUTTON_CLICK_SOUND = "";
|
|
}
|
|
|
|
} |