WorldControllerTable.lua 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. local mGlobal = global
  2. local facade = mGlobal.Facade
  3. local noticeTable = mGlobal.NoticeTable
  4. local registerTable =
  5. {
  6. -- 角色属性初始化
  7. [noticeTable.PlayerPropertyInited] = "gamestates/PlayerPropertyInitedCommand",
  8. -- 断线重连相关
  9. [noticeTable.Reconnect] = "gamestates/ReconnectCommand",
  10. -- 返回选角
  11. [noticeTable.LeaveWorld] = "gamestates/LeaveWorldCommand",
  12. -- 注销world相关
  13. [noticeTable.UnRegisterWorldController] = "register/UnRegisterWorldControllerCommand",
  14. [noticeTable.UnRegisterWorldMediator] = "register/UnRegisterWorldMediatorCommand",
  15. [noticeTable.UnRegisterWorldProxy] = "register/UnRegisterWorldProxyCommand",
  16. -- 道具相关
  17. [noticeTable.ItemUpdate] = "item/ItemUpdateCommand",
  18. [noticeTable.TakeOnRequest] = "item/TakeOnEquipCommand",
  19. [noticeTable.TakeOffRequest] = "item/TakeOffEquipCommand",
  20. [noticeTable.TakeOnResponse] = "item/TakeOnEquipResponseCommand",
  21. [noticeTable.TakeOffResponse] = "item/TakeOffEquipResponseCommand",
  22. [noticeTable.IntoDropItem] = "item/IntoDropItemCommand",
  23. [noticeTable.IntoDropItem_Hero] = "item/HeroIntoDropItemCommand",
  24. --hero
  25. [noticeTable.HeroTakeOnRequest] = "item/HeroTakeOnEquipCommand",
  26. [noticeTable.HeroTakeOffRequest] = "item/HeroTakeOffEquipCommand",
  27. [noticeTable.HeroTakeOnResponse] = "item/HeroTakeOnEquipResponseCommand",
  28. [noticeTable.HeroTakeOffResponse] = "item/HeroTakeOffEquipResponseCommand",
  29. [noticeTable.HeroTakeOffRequestToHumBag] = "item/HeroTakeOffEquipToHumBagCommand",
  30. [noticeTable.TakeOnRequestFromHeroBag] = "item/TakeOnEquipFromHeroBagCommand",
  31. [noticeTable.TakeOffToHeroBagRequest] = "item/TakeOffEquipToHeroBagRequestCommand",
  32. [noticeTable.HeroTakeOnRequestFromHumBag] = "item/HeroTakeOnEquipFromHumBagCommand",
  33. -- auto
  34. [noticeTable.AutoFightBegin] = "auto/AutoFightBeginCommand",
  35. [noticeTable.AutoFightEnd] = "auto/AutoFightEndCommand",
  36. [noticeTable.AutoMoveBegin] = "auto/AutoMoveBeginCommand",
  37. [noticeTable.AutoMoveEnd] = "auto/AutoMoveEndCommand",
  38. [noticeTable.AutoFindNPC] = "auto/AutoFindNPCCommand",
  39. [noticeTable.AutoFindMonster] = "auto/AutoFindMonsterCommand",
  40. [noticeTable.AutoFindPlayer] = "auto/AutoFindPlayerCommand",
  41. [noticeTable.AutoFindCollection] = "auto/AutoFindCollectionCommand",
  42. [noticeTable.AutoFindDropItem] = "auto/AutoFindDropItemCommand",
  43. [noticeTable.AutoPickupBySprite] = "auto/AutoPickupBySpriteCommand",
  44. [noticeTable.AutoFightBack] = "auto/AutoFightBackCommand",
  45. -- actor states
  46. [noticeTable.ActorEnterIdleAction] = "actorstates/ActorEnterIdleCommand",
  47. [noticeTable.ActorEnterWalkAction] = "actorstates/ActorEnterWalkCommand",
  48. [noticeTable.ActorEnterRunAction] = "actorstates/ActorEnterRunCommand",
  49. [noticeTable.ActorEnterAttackAction] = "actorstates/ActorEnterAttackCommand",
  50. [noticeTable.ActorEnterSkillAction] = "actorstates/ActorEnterSkillCommand",
  51. -- input
  52. [noticeTable.InputIdle] = "input/InputIdleCommand",
  53. [noticeTable.InputLaunch] = "input/InputLaunchCommand",
  54. [noticeTable.InputMove] = "input/InputMoveCommand",
  55. [noticeTable.InputCorpse] = "input/InputCorpseCommand",
  56. [noticeTable.InputMining] = "input/InputMiningCommand",
  57. [noticeTable.PickerChange] = "input/PickerChangeCommand",
  58. -- skill
  59. [noticeTable.RequestSkillPresent] = "skill/SkillPresentCommand",
  60. [noticeTable.SkillDel] = "skill/DelSkillCommand",
  61. -- actor
  62. [noticeTable.ActorPlayerDie] = "other/ActorDieCommand",
  63. [noticeTable.ActorMonsterDie] = "other/ActorDieCommand",
  64. [noticeTable.ActorOutOfView] = "other/ActorOutOfViewCommand",
  65. [noticeTable.ActorInOfView] = "other/ActorInOfViewCommand",
  66. [noticeTable.DropItemOutOfView] = "other/DropItemOutOfViewCommand",
  67. [noticeTable.DropItemInOfView] = "other/DropItemInOfViewCommand",
  68. [noticeTable.RefreshDropItem] = "other/RefreshDropItemCommand",
  69. [noticeTable.ActorRevive] = "other/ActorReviveCommand",
  70. [noticeTable.ActorMonsterCave] = "other/MonsterCaveCommand",
  71. [noticeTable.GamePickSettingChange] = "other/RefreshDropItemDisplayCommand",
  72. [noticeTable.ActorFeatureChange] = "actor/ChangePlayerFeatureCommand",
  73. [noticeTable.SetPlayerFeature] = "actor/SetPlayerFeatureCommand",
  74. [noticeTable.SetPlayerFeatureEX] = "actor/SetPlayerFeatureEXCommand",
  75. [noticeTable.ActorSay] = "other/ActorSayCommand",
  76. [noticeTable.RefreshActorBooth] = "other/RefreshActorBoothCommand",
  77. [noticeTable.RefreshActorSafeZone] = "other/RefreshActorSafeZoneCommand",
  78. [noticeTable.RefreshActorShaBaKeZone] = "other/RefreshActorShaBaKeZoneCommand",
  79. [noticeTable.RefreshActorNameColor] = "other/RefreshActorNameColorCommand",
  80. [noticeTable.RefreshGuildActorColor] = "other/RefreshGuildActorColorCommand",
  81. --实名认证
  82. [noticeTable.RealNameInfo] = "other/RealNameCommand",
  83. -- scene
  84. [noticeTable.ChangeScene] = "scene/ChangeSceneCommand",
  85. [noticeTable.ShakeScene] = "other/ShakeSceneCommand",
  86. -- HUD
  87. [noticeTable.RefreshHUDLabel] = "other/RefreshActorHUDLabelCommand",
  88. [noticeTable.RefreshHUDTitle] = "other/RefreshActorHUDTitleCommand",
  89. [noticeTable.RefreshHUDHP] = "other/RefreshActorHUDHPLabelCommand",
  90. [noticeTable.RefreshActorHP] = "other/RefreshActorHPCommand",
  91. [noticeTable.RefreshActorIForce] = "other/RefreshActorIForceCommand",
  92. -- shader
  93. [noticeTable.HighLightNodeShader] = "shader/HighlightShaderCommand",
  94. -- pay product
  95. [noticeTable.PayProductRequest] = "other/CallFCommand",
  96. [noticeTable.GameSettingInited] = "other/SettingInitedCommand",
  97. [noticeTable.GameSettingChange] = "other/SettingChangeCommand",
  98. [noticeTable.CloudStorageInit] = "other/CloudStorageInitCommand",
  99. [noticeTable.ResolutionSizeChange] = "other/ResolutionSizeChangeCommand",
  100. [noticeTable.TradingBank_other_Capture] = "other/TradingBankCaptureOtherCommand",
  101. -- 刘海屏改变
  102. [noticeTable.DeviceRotationChanged] = "other/DeviceRotationChangedCommand",
  103. -- pc名改变
  104. [noticeTable.AppViewNameChange] = "other/AppViewNameChangeCommand",
  105. }
  106. local table_mobile =
  107. {
  108. [noticeTable.RequestLaunchSkill] = "skill/RequestLaunchCommand",
  109. }
  110. local table_pc =
  111. {
  112. [noticeTable.RequestLaunchSkill] = "skill/RequestLaunchCommand-win32",
  113. }
  114. local t = (global.isWinPlayMode and table_pc or table_mobile)
  115. for k, v in pairs(t) do
  116. registerTable[k] = v
  117. end
  118. return registerTable