// *********************************************************************** // Assembly : Game // Author : Kimch // Created : 2020-08-28 // Description : // Last Modified By : // Last Modified On : // *********************************************************************** // // // *********************************************************************** namespace G { /// /// 全局定义 /// public static class GlobalDefine { #region 事件通知 /// /// /// 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; /// /// 游戏界面事件 /// public const int EVENT_WINDOW_OPENED = 11; /// /// /// public const int EVENT_WINDOW_CLOSED = 12; /// /// /// public const int EVENT_BUTTON_CLICK = 13; /// /// 打开界面 /// public const int EVENT_OPEN_WINDOW = 14; /// /// /// public const int EVENT_SHOW_TOAST = 15; //主界面相关 /// /// 主界面事件 /// public const int EVENT_MAIN_WINDOW = 16; public const int EVENT_MAIN_WINDOW_PAGE = 18; public const int EVENT_MAIN_WINDOW_FUNCTION = 19; /// /// 游戏界面事件 /// public const int EVENT_GAME_WINDOW = 20; /// /// 打开结算结果 /// public const int EVENT_SETTLE_RESULT = 21; /// /// 剧情 /// 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; /// /// 角色属性 /// public const int EVENT_PLAYER_ATTRIBUTES_CHANGED = 110; /// /// 角色装备改变 /// public const int EVENT_PLAYER_EQUIPMENT_CHANGED = 111; public const int EVENT_PLAYER_AVATAR_CHANGED = 113; public const int EVENT_PLAYER_AVATAR_SELECTED = 115; /// /// 装备获得 /// public const int EVENT_EQUIPMENT_GET = 121; /// /// 装备出售 /// public const int EVENT_EQUIPMENT_SELL = 122; /// /// 背包已满 /// public const int EVENT_EQUIPMENT_FULL = 123; /// /// /// public const int EVENT_EQUIPMENT_LOCK = 124; /// /// /// public const int EVENT_EQUIPMENT_SUIT = 125; /// /// /// public const int EVENT_EQUIPMENT_SLOT_SELECT = 126; /// /// /// public const int EVENT_EQUIPMENT_SELECT = 127; /// /// /// public const int EVENT_GEM_CHANGED = 128; public const int EVENT_GEM_FILTER_CHANGED = 129; public const int EVENT_PROP_CHANGED = 120; /// /// 学习功夫 /// public const int EVENT_KUNGFU_STUDY = 141; public const int EVENT_KUNGFU_DETAIL = 142; public const int EVENT_BOOK_ARRANGE = 143; /// /// 关卡信息 /// 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; /// /// /// public const int EVENT_SKILL_CARD_STATE_CHANGED = 161; /// /// /// public const int EVENT_SKILL_CARD_SELECTED = 162; /// /// 任务状态变更 /// 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; /// /// 关卡状态事件 /// public const int EVENT_LEVEL_SCENE = 201; /// /// /// public const int EVENT_LEVEL_STATE = 202; /// /// 关卡状态事件 /// public const int EVENT_STAGE_STATE = 203; /// /// /// public const int EVENT_SKILL_STATE = 210; /// /// 血量提醒 /// public const int EVENT_BATTLE_STAGE_HINT = 220; /// /// combo 状态 /// public const int EVENT_COMBO_STATE = 221; /// /// /// public const int EVENT_HOLD_STATE = 231; /// /// /// public const int EVENT_SHOW_EFFECT = 241; /// /// /// public const int EVENT_SHOW_TEXT_EFFECT = 242; /// /// /// public const int EVENT_SHOW_LVUP_EFFECT = 243; /// /// /// public const int EVENT_SHOW_BUFF = 251; public const int EVENT_OPEN_BUFF = 252; public const int EVENT_CLOSE_BUFF = 253; /// /// 副本杀敌 /// public const int EVENT_COPY_KILLER = 300; /// /// 副本奖励道具 /// public const int EVENT_COPY_PROP = 301; /// /// 副本进度 /// public const int EVENT_COPY_COMPLETE = 302; /// /// 副本受伤 /// public const int EVENT_COPY_INJURED = 303; public const int EVENT_COPY_END = 304; //游戏内相关事件 /// /// /// 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 = ""; } }