173 lines
6.9 KiB
Lua
173 lines
6.9 KiB
Lua
--[[
|
|
这里用于保存一些全局的常量
|
|
--]]
|
|
_G.Delegate = require("common.Delegate")
|
|
|
|
_G.UIRoot = {
|
|
BattleRoot = 1,
|
|
BattleGuideRoot = 2,
|
|
BattleNoticeRoot = 3,
|
|
MiddleRoot = 4,
|
|
CommonRoot = 5,
|
|
CommonGuideRoot = 6,
|
|
CommonNoticeRoot = 7,
|
|
GeneralGuideRoot = 8,
|
|
SettlementRoot = 9,
|
|
}
|
|
|
|
_G.UIClassPath = {
|
|
MainUI = "Asset/UI/WBP_MainUI.WBP_MainUI_C",
|
|
TeamPanelItem = "Asset/UI/WBP_TeamPanel_Item.WBP_TeamPanel_Item_C",
|
|
SkillItem = "Asset/UI/WBP_Skill_Item.WBP_Skill_Item_C",
|
|
Bag_FittingItem = "Asset/UI/ChildWidgets/WBP_FittingItem.WBP_FittingItem_C",
|
|
Bag_WeaponItem = "Asset/UI/ChildWidgets/WBP_BagWeaponItem.WBP_BagWeaponItem_C",
|
|
}
|
|
|
|
_G.BPClassPath = {
|
|
--------for FlushLoad
|
|
MonsterBase = UGCGameSystem.GetUGCResourcesFullPath('Asset/Blueprint/Monster/BP_MonsterBase.BP_MonsterBase_C'),
|
|
PlayerPawn = UGCGameSystem.GetUGCResourcesFullPath('Asset/Blueprint/Player/BP_PlayerPawn.BP_PlayerPawn_C'),
|
|
MonsterSpawner = UGCGameSystem.GetUGCResourcesFullPath('Asset/Blueprint/SceneObject/BP_MonsterSpawner.BP_MonsterSpawner_C'),
|
|
Teleporter = UGCGameSystem.GetUGCResourcesFullPath('Asset/Blueprint/SceneObject/BP_Teleporter.BP_Teleporter_C'),
|
|
Crystal = UGCGameSystem.GetUGCResourcesFullPath('Asset/Blueprint/SceneObject/BP_Crystal.BP_Crystal_C'),
|
|
Weapon = UGCGameSystem.GetUGCResourcesFullPath('Asset/Blueprint/Weapon/BP_WeaponPawnBase.BP_WeaponPawnBase_C'),
|
|
MonsterBoss = UGCGameSystem.GetUGCResourcesFullPath('Asset/Blueprint/Monster/BP_MonsterBoss.BP_MonsterBoss_C'),
|
|
HangupRoomMonster = UGCGameSystem.GetUGCResourcesFullPath('Asset/Blueprint/Monster/BP_MonsterExerciseRoom.BP_MonsterExerciseRoom_C'),
|
|
PlayerStart = UGCGameSystem.GetUGCResourcesFullPath('Asset/Blueprint/UGCPlayerStart.UGCPlayerStart_C'),
|
|
PickupItemClass = UGCGameSystem.GetUGCResourcesFullPath('Asset/Blueprint/Item/BP_ItemActorBase.BP_ItemActorBase_C'),
|
|
|
|
--------for AsyncLoad
|
|
CustomCameraActor = "Asset/Blueprint/UGCPlayerCamera.UGCPlayerCamera_C",
|
|
WeaponBaseActor = "Asset/Blueprint/Weapon/BP_WeaponPawnBase.BP_WeaponPawnBase_C",
|
|
}
|
|
|
|
_G.TablePath = {
|
|
WeaponConstructInfo = UGCGameSystem.GetUGCResourcesFullPath('Asset/CSV/WeaponConstructTable.WeaponConstructTable'),
|
|
}
|
|
|
|
_G.EventType = {
|
|
|
|
OnGameStageChanged = 10,
|
|
OnWaitPlayerJoinTimeChanged = 11,
|
|
OnIsInAttackWaveChanged = 12,
|
|
OnCurAttackWaveChanged = 13,
|
|
OnGameReadyStageRemainTimeChanged = 14,
|
|
OnGameFightStageRemainTimeChanged = 15,
|
|
OnSendGameEnd = 16,
|
|
|
|
|
|
--------------------------------Server & Client-------------------------------------------
|
|
NewRoundStart = 101,
|
|
RoundEnd = 102,
|
|
GameEnd = 103,
|
|
ExitGame = 104,
|
|
|
|
PlayerDataListChanged = 201,
|
|
PlayerDifficultySelectionChanged = 202,
|
|
|
|
|
|
PlayerBuyTechSucceed = 304,
|
|
--------------------------------Only Server-----------------------------------------------
|
|
PlayerPawnInArenaChanged = 401,
|
|
SpawnDropItem = 402,
|
|
SpawnDropItemByID = 403,
|
|
UpdateWeaponAttribute = 404, -- 武器属性更新完成,需要重新调用一遍更新玩家属性
|
|
OnCrystalHPReachedZero = 405, -- 水晶死亡
|
|
|
|
-- 武器
|
|
RefreshShoot = 406, -- 刷新射击速率
|
|
UpdateWeapon = 407, -- 刷新武器,在武器配件有更新的时候进行刷新
|
|
SelectedWeapon = 408, -- 选择武器的时候进行刷新
|
|
|
|
ServerOnLevelAndExpChanged = 409,
|
|
ServerOnCombatPointChanged = 410,
|
|
|
|
PlayerPawnDead = 411, -- 玩家死亡 DeadPlayerKey, Killer
|
|
|
|
SendPlayersToExercise = 412, -- 传送到休息室
|
|
|
|
--------------------------------Only Client-----------------------------------------------
|
|
CurrentRoundChange = 501,
|
|
|
|
RequestPickup = 502,
|
|
|
|
PlayerCoinPointChanged = 601,
|
|
PlayerKillPointChanged = 602,
|
|
PlayerSkillMappingChanged = 603,
|
|
PlayerSkillCDTriggered = 604,
|
|
OnSetupSkillButton = 605,
|
|
PlayerInheritItemsChanged = 606,
|
|
|
|
PlayerPawnInitialized_Client = 701,
|
|
PlayerStateInitialized_Client = 702,
|
|
PlayerControllerInitialized_Client = 703,
|
|
ClientUpdateWeapon = 704,
|
|
|
|
AsyncLoadWeaponMeshesCompleted = 804,
|
|
AsyncLoadWeaponIconsCompleted = 805,
|
|
AsyncLoadSkillIconsCompleted = 807,
|
|
AsyncLoadSkillEffectsCompleted = 810,
|
|
|
|
AttackRangeChanged = 808,
|
|
|
|
ChangeBossList = 809,
|
|
|
|
--------------------------------UI--------------------------------------------------------
|
|
RequestShowPanel = 901,
|
|
RequestClosePanel = 902,
|
|
|
|
ShowNotice = 903,
|
|
ShowRollingNotice = 904,
|
|
|
|
OnWidgetShowed = 905,
|
|
OnWidgetClosed = 906,
|
|
|
|
OnPlayerExpChanged = 811,
|
|
OnPlayerLevelChanged = 812,
|
|
OnPlayerHPChanged = 813,
|
|
OnPlayerEnergyChanged = 814,
|
|
|
|
ToggleBreachButton = 815,
|
|
|
|
OnPlayerBaseAttackValueChanged = 820,
|
|
OnPlayerCombatPointChanged = 816,
|
|
OnPlayerAttributeChanged = 817,
|
|
OnPlayerDamageChanged = 818,
|
|
OnCrystalHPChanged = 819,
|
|
|
|
ShowGeneralSlideWidget = 821,
|
|
SendGeneralSlideNum = 822,
|
|
BagOperation = 823,
|
|
CancelBagOperation = 824,
|
|
SelectedItem = 825,
|
|
ShowItemDescribe = 826,
|
|
ClickTitle = 827,
|
|
UpdateItemList = 828,
|
|
CloseGenerateItem = 829,
|
|
|
|
|
|
UpdateAllWeapon = 831,
|
|
ClickFittingItem = 833,
|
|
AttributeChanged = 834,
|
|
ShowSealButton = 835,
|
|
UnpackingResult = 836,
|
|
RefreshWeapons = 837,
|
|
|
|
UpdateBossInfoToWidget = 841,
|
|
|
|
OnResourceGradeChanged = 842,
|
|
|
|
UpdateStones = 843,
|
|
UpdateInitialWidget = 844,
|
|
|
|
OnGameDurationChanged = 845,
|
|
|
|
--------------------------------强引导相关--------------------------------------------------------
|
|
|
|
ForceGuide_OnGuideTriggered = 8998,
|
|
ForceGuide_OnGuideFinished = 8999,
|
|
ForceGuide_TechBuy = 9001,
|
|
|
|
--------------------------------GM相关--------------------------------------------------------
|
|
GM_TimeScale = 500001,
|
|
} |