-
Notifications
You must be signed in to change notification settings - Fork 228
/
context-based-templates-data.lua
73 lines (66 loc) · 5.83 KB
/
context-based-templates-data.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
--******************************************************************************************************
--** Copyright (c) 2023 Willem 'Jip' Wijnia
--**
--** Permission is hereby granted, free of charge, to any person obtaining a copy
--** of this software and associated documentation files (the "Software"), to deal
--** in the Software without restriction, including without limitation the rights
--** to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
--** copies of the Software, and to permit persons to whom the Software is
--** furnished to do so, subject to the following conditions:
--**
--** The above copyright notice and this permission notice shall be included in all
--** copies or substantial portions of the Software.
--**
--** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
--** IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
--** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
--** AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
--** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
--** OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
--** SOFTWARE.
--******************************************************************************************************
---@class ContextBasedTemplate
---@field Name string # Printed on screen when cycling the templates
---@field TemplateData UIBuildTemplate # A regular build template, except that it is written in Pascal Case and usually the first unit is removed
---@field TemplateSortingOrder number # Lower numbers end up first in the queue
---@field TemplateBlueprintId BlueprintId
---
--- By mouse context
---@field TriggersOnUnit? EntityCategory # When defined, includes this template when the player is hovering over a unit, a build order for a given unit or a unit in build preview that matches the categories
---@field TriggersOnLand? boolean # When true, includes this template when the mouse is over land and not over a deposit
---@field TriggersOnWater? boolean # When true, includes this template when the mouse is over water and not over a deposit
---@field TriggersOnMassDeposit? boolean # When true, includes this template when the mouse is over a mass deposit
---@field TriggersOnHydroDeposit? boolean # When true, includes this template when the mouse is over a hydrocarbon deposit
---
-- deprecated
---@field TriggersOnBuilding? EntityCategory # when defined, includes this template when the unit that is being built matches the categories. Is deprecated, use TriggersOnUnit instead.
-------------------------------------------------------------------------------
--#region By mouse context
PointDefense = import("/lua/ui/game/hotkeys/context-based-templates-data/PointDefense.lua").Template
AirDefenseLand = import("/lua/ui/game/hotkeys/context-based-templates-data/AirDefenseLand.lua").Template
AirDefenseWater = import("/lua/ui/game/hotkeys/context-based-templates-data/AirDefenseWater.lua").Template
TorpedoDefense = import("/lua/ui/game/hotkeys/context-based-templates-data/TorpedoDefense.lua").Template
T3Extractor = import("/lua/ui/game/hotkeys/context-based-templates-data/T3Extractor.lua").Template
T3ExtractorWithStorages = import("/lua/ui/game/hotkeys/context-based-templates-data/T3ExtractorWithStorages.lua").Template
T3ExtractorWithStoragesAndFabs = import("/lua/ui/game/hotkeys/context-based-templates-data/T3ExtractorWithStoragesAndFabs.lua").Template
T1Hydrocarbon = import("/lua/ui/game/hotkeys/context-based-templates-data/T1Hydrocarbon.lua").Template
--#endregion
-------------------------------------------------------------------------------
--#region By (unit) blueprint id
AppendExtractorWithStorages = import("/lua/ui/game/hotkeys/context-based-templates-data/AppendExtractorWithStorages.lua").Template
AppendExtractorWithFabs = import("/lua/ui/game/hotkeys/context-based-templates-data/AppendExtractorWithFabs.lua").Template
AppendRadarWithPower = import("/lua/ui/game/hotkeys/context-based-templates-data/AppendRadarWithPower.lua").Template
AppendOpticsWithPower = import("/lua/ui/game/hotkeys/context-based-templates-data/AppendOpticsWithPower.lua").Template
AppendT2ArtilleryWithPower = import("/lua/ui/game/hotkeys/context-based-templates-data/AppendT2ArtilleryWithPower.lua").Template
AppendT3FabricatorWithStorages = import("/lua/ui/game/hotkeys/context-based-templates-data/AppendT3FabricatorWithStorages.lua").Template
AppendT2ArtilleryWithPower = import("/lua/ui/game/hotkeys/context-based-templates-data/AppendT2ArtilleryWithPower.lua").Template
AppendT3ArtilleryWithPower = import("/lua/ui/game/hotkeys/context-based-templates-data/AppendT3ArtilleryWithPower.lua").Template
AppendSalvationWithPower = import("/lua/ui/game/hotkeys/context-based-templates-data/AppendSalvationWithPower.lua").Template
AppendPowerGeneratorsToT2Artillery = import("/lua/ui/game/hotkeys/context-based-templates-data/AppendPowerGeneratorsToT2Artillery.lua").Template
AppendPowerGeneratorsToT3Artillery = import("/lua/ui/game/hotkeys/context-based-templates-data/AppendPowerGeneratorsToT3Artillery.lua").Template
AppendPowerGeneratorsToSalvation = import("/lua/ui/game/hotkeys/context-based-templates-data/AppendPowerGeneratorsToSalvation.lua").Template
AppendPowerGeneratorsToEnergyStorage = import("/lua/ui/game/hotkeys/context-based-templates-data/AppendPowerGeneratorsToEnergyStorage.lua").Template
AppendPowerGeneratorsToTML = import("/lua/ui/game/hotkeys/context-based-templates-data/AppendPowerGeneratorsToTML.lua").Template
AppendWallsToPointDefense = import("/lua/ui/game/hotkeys/context-based-templates-data/AppendWallsToPointDefense.lua").Template
AppendAirGrid = import("/lua/ui/game/hotkeys/context-based-templates-data/AppendAirGrid.lua").Template
--#endregion