Skip to content

Commit

Permalink
Annotate inheritance of all remaining unit classes (FAForever#4106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas authored Aug 7, 2022
1 parent 7957bd5 commit d83462c
Show file tree
Hide file tree
Showing 582 changed files with 604 additions and 22 deletions.
1 change: 1 addition & 0 deletions units/DAA0206/DAA0206_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ local DefaultProjectileWeapon = import('/lua/sim/defaultweapons.lua').DefaultPro
local EffectTemplate = import('/lua/EffectTemplates.lua')
local EffectUtils = import('/lua/effectutilities.lua')

---@class DAA0206 : AAirUnit
DAA0206 = Class(AAirUnit) {
Weapons = {
Suicide = Class(DefaultProjectileWeapon) {}
Expand Down
1 change: 1 addition & 0 deletions units/DAL0310/DAL0310_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
local AHoverLandUnit = import('/lua/aeonunits.lua').AHoverLandUnit
local ADFDisruptorCannonWeapon = import('/lua/aeonweapons.lua').ADFDisruptorWeapon

---@class DAL0310 : AHoverLandUnit
DAL0310 = Class(AHoverLandUnit) {
Weapons = {
MainGun = Class(ADFDisruptorCannonWeapon) {
Expand Down
1 change: 1 addition & 0 deletions units/DEA0202/DEA0202_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ local TAirUnit = import('/lua/terranunits.lua').TAirUnit
local TAirToAirLinkedRailgun = import('/lua/terranweapons.lua').TAirToAirLinkedRailgun
local TIFCarpetBombWeapon = import('/lua/terranweapons.lua').TIFCarpetBombWeapon

---@class DEA0202 : TAirUnit
DEA0202 = Class(TAirUnit) {
Weapons = {
RightBeam = Class(TAirToAirLinkedRailgun) {},
Expand Down
1 change: 1 addition & 0 deletions units/DEL0204/DEL0204_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ local TIFFragLauncherWeapon = TWeapons.TDFFragmentationGrenadeLauncherWeapon
local EffectUtils = import('/lua/effectutilities.lua')
local Effects = import('/lua/effecttemplates.lua')

---@class DEL0204 : TWalkingLandUnit
DEL0204 = Class(TWalkingLandUnit)
{
Weapons = {
Expand Down
1 change: 1 addition & 0 deletions units/DRA0202/DRA0202_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ local CAirUnit = import('/lua/cybranunits.lua').CAirUnit
local CAAMissileNaniteWeapon = import('/lua/cybranweapons.lua').CAAMissileNaniteWeapon
local CIFMissileCorsairWeapon = import('/lua/cybranweapons.lua').CIFMissileCorsairWeapon

---@class DRA0202 : CAirUnit
DRA0202 = Class(CAirUnit) {
Weapons = {
AntiAirMissiles = Class(CAAMissileNaniteWeapon) {},
Expand Down
1 change: 1 addition & 0 deletions units/OPC1001/OPC1001_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--****************************************************************************
local Unit = import('/lua/sim/Unit.lua').Unit

---@class OPC1001 : Unit
OPC1001 = Class(Unit) {
}

Expand Down
1 change: 1 addition & 0 deletions units/OPC1002/OPC1002_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

local TLandUnit = import('/lua/terranunits.lua').TLandUnit

---@class OPC1002 : TLandUnit
OPC1002 = Class(TLandUnit) {
}

Expand Down
1 change: 1 addition & 0 deletions units/OPC2001/OPC2001_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--****************************************************************************
local Unit = import('/lua/sim/Unit.lua').Unit

---@class OPC2001 : Unit
OPC2001 = Class(Unit) {
}

Expand Down
1 change: 1 addition & 0 deletions units/OPC2002/OPC2002_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--****************************************************************************
local HoverLandUnit = import('/lua/defaultunits.lua').HoverLandUnit

---@class OPC2002 : HoverLandUnit
OPC2002 = Class(HoverLandUnit) {

OnStopBeingBuilt = function(self, builder, layer)
Expand Down
1 change: 1 addition & 0 deletions units/OPC5007/OPC5007_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

local TWallStructureUnit = import('/lua/terranunits.lua').TWallStructureUnit

---@class OPC5007 : TWallStructureUnit
OPC5007 = Class(TWallStructureUnit) {
}

Expand Down
1 change: 1 addition & 0 deletions units/OPC5008/OPC5008_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

local TWallStructureUnit = import('/lua/terranunits.lua').TWallStructureUnit

---@class OPC5008 : TWallStructureUnit
OPC5008 = Class(TWallStructureUnit) {
}

Expand Down
1 change: 1 addition & 0 deletions units/OPE2001/OPE2001_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

local TWallStructureUnit = import('/lua/terranunits.lua').TWallStructureUnit

---@class OPE2001 : TWallStructureUnit
OPE2001 = Class(TWallStructureUnit) {
}

Expand Down
1 change: 1 addition & 0 deletions units/OPE3001/OPE3001_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

local TWallStructureUnit = import('/lua/terranunits.lua').TWallStructureUnit

---@class OPE3001 : TWallStructureUnit
OPE3001 = Class(TWallStructureUnit) {
FxDamage1 = {},
FxDamage2 = {},
Expand Down
1 change: 1 addition & 0 deletions units/OPE6001/OPE6001_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--****************************************************************************
local Unit = import('/lua/sim/Unit.lua').Unit

---@class OPE6001 : Unit
OPE6001 = Class(Unit) {
}

Expand Down
1 change: 1 addition & 0 deletions units/OPE6002/OPE6002_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--****************************************************************************
local Unit = import('/lua/sim/Unit.lua').Unit

---@class OPE6002 : Unit
OPE6002 = Class(Unit) {
}

Expand Down
1 change: 1 addition & 0 deletions units/OPE6003/OPE6003_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--****************************************************************************
local Unit = import('/lua/sim/Unit.lua').Unit

---@class OPE6003 : Unit
OPE6003 = Class(Unit) {
}

Expand Down
1 change: 1 addition & 0 deletions units/OPE6004/OPE6004_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--****************************************************************************
local Unit = import('/lua/sim/Unit.lua').Unit

---@class OPE6004 : Unit
OPE6004 = Class(Unit) {
}

Expand Down
1 change: 1 addition & 0 deletions units/OPE6005/OPE6005_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--****************************************************************************
local Unit = import('/lua/sim/Unit.lua').Unit

---@class OPE6005 : Unit
OPE6005 = Class(Unit) {
}

Expand Down
1 change: 1 addition & 0 deletions units/OPE6006/ope6006_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--****************************************************************************
local TCivilianStructureUnit = import('/lua/terranunits.lua').TCivilianStructureUnit

---@class OPE6006 : TCivilianStructureUnit
OPE6006 = Class(TCivilianStructureUnit) {
}

Expand Down
1 change: 1 addition & 0 deletions units/UAA0101/UAA0101_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

local AAirUnit = import('/lua/aeonunits.lua').AAirUnit

---@class UAA0101 : AAirUnit
UAA0101 = Class(AAirUnit) {
}

Expand Down
1 change: 1 addition & 0 deletions units/UAA0102/UAA0102_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ local AAirUnit = import('/lua/aeonunits.lua').AAirUnit
local aWeapons = import('/lua/aeonweapons.lua')
local AAASonicPulseBatteryWeapon = aWeapons.AAASonicPulseBatteryWeapon

---@class UAA0102 : AAirUnit
UAA0102 = Class(AAirUnit) {

Weapons = {
Expand Down
1 change: 1 addition & 0 deletions units/UAA0103/UAA0103_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
local AAirUnit = import('/lua/aeonunits.lua').AAirUnit
local AIFBombGravitonWeapon = import('/lua/aeonweapons.lua').AIFBombGravitonWeapon

---@class UAA0103 : AAirUnit
UAA0103 = Class(AAirUnit) {
Weapons = {
Bomb = Class(AIFBombGravitonWeapon) {},
Expand Down
1 change: 1 addition & 0 deletions units/UAA0104/UAA0104_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ local util = import('/lua/utilities.lua')
local aWeapons = import('/lua/aeonweapons.lua')
local AAASonicPulseBatteryWeapon = aWeapons.AAASonicPulseBatteryWeapon

---@class UAA0104 : AirTransport
UAA0104 = Class(AirTransport) {
AirDestructionEffectBones = { 'Exhaust', 'Wing_Right', 'Wing_Left', 'Turret_Right', 'Turret_Left',
'Slots_Left01', 'Slots_Left02', 'Slots_Right01', 'Slots_Right02',
Expand Down
1 change: 1 addition & 0 deletions units/UAA0107/UAA0107_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
local AirTransport = import('/lua/defaultunits.lua').AirTransport
local DummyWeapon = import('/lua/aeonweapons.lua').AAASonicPulseBatteryWeapon

---@class UAA0107 : AirTransport
UAA0107 = Class(AirTransport) {

Weapons = {
Expand Down
1 change: 1 addition & 0 deletions units/UAA0203/UAA0203_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
local AAirUnit = import('/lua/aeonunits.lua').AAirUnit
local ADFLaserLightWeapon = import('/lua/aeonweapons.lua').ADFLaserLightWeapon

---@class UAA0203 : AAirUnit
UAA0203 = Class(AAirUnit) {
Weapons = {
Turret = Class(ADFLaserLightWeapon) {
Expand Down
1 change: 1 addition & 0 deletions units/UAA0204/UAA0204_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
local AAirUnit = import('/lua/aeonunits.lua').AAirUnit
local AANDepthChargeBombWeapon = import('/lua/aeonweapons.lua').AANDepthChargeBombWeapon

---@class UAA0204 : AAirUnit
UAA0204 = Class(AAirUnit) {
Weapons = {
Bomb = Class(AANDepthChargeBombWeapon) {},
Expand Down
1 change: 1 addition & 0 deletions units/UAA0302/UAA0302_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

local AAirUnit = import('/lua/aeonunits.lua').AAirUnit

---@class UAA0302 : AAirUnit
UAA0302 = Class(AAirUnit) {
}
TypeClass = UAA0302
1 change: 1 addition & 0 deletions units/UAA0303/UAA0303_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
local AAirUnit = import('/lua/aeonunits.lua').AAirUnit
local AAAAutocannonQuantumWeapon = import('/lua/aeonweapons.lua').AAAAutocannonQuantumWeapon

---@class UAA0303 : AAirUnit
UAA0303 = Class(AAirUnit) {
Weapons = {
AutoCannon1 = Class(AAAAutocannonQuantumWeapon) {},
Expand Down
3 changes: 2 additions & 1 deletion units/UAA0304/UAA0304_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
-- File : /cdimage/units/UAA0304/UAA0304_script.lua
-- Author(s): John Comes, David Tomandl
-- Summary : Aeon Strategic Bomber Script
-- Copyright © 2005 Gas Powered Games, Inc. All rights reserved.
-- Copyright 2005 Gas Powered Games, Inc. All rights reserved.
------------------------------------------------------------------

local AAirUnit = import('/lua/aeonunits.lua').AAirUnit
local AIFBombQuarkWeapon = import('/lua/aeonweapons.lua').AIFBombQuarkWeapon


---@class UAA0304 : AAirUnit
UAA0304 = Class(AAirUnit) {
Weapons = {
Bomb = Class(AIFBombQuarkWeapon) {},
Expand Down
1 change: 1 addition & 0 deletions units/UAA0310/UAA0310_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ local CzarShield = import('/lua/shield.lua').CzarShield

local CreateAeonCZARBuildingEffects = import("/lua/effectutilities.lua").CreateAeonCZARBuildingEffects

---@class UAA0310 : AirTransport
UAA0310 = Class(AirTransport) {
DestroyNoFallRandomChance = 1.1,
BuildAttachBone = 'UAA0310',
Expand Down
1 change: 1 addition & 0 deletions units/UAB0101/UAB0101_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

local ALandFactoryUnit = import('/lua/aeonunits.lua').ALandFactoryUnit

---@class UAB0101 : ALandFactoryUnit
UAB0101 = Class(ALandFactoryUnit) {}

TypeClass = UAB0101
1 change: 1 addition & 0 deletions units/UAB0102/UAB0102_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
--** Copyright © 2005 Gas Powered Games, Inc. All rights reserved.
--****************************************************************************
local AAirFactoryUnit = import('/lua/aeonunits.lua').AAirFactoryUnit
---@class UAB0102 : AAirFactoryUnit
UAB0102 = Class(AAirFactoryUnit) {}

TypeClass = UAB0102
1 change: 1 addition & 0 deletions units/UAB0103/UAB0103_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
--** Copyright © 2005 Gas Powered Games, Inc. All rights reserved.
--****************************************************************************
local ASeaFactoryUnit = import('/lua/aeonunits.lua').ASeaFactoryUnit
---@class UAB0103 : ASeaFactoryUnit
UAB0103 = Class(ASeaFactoryUnit) {}

TypeClass = UAB0103
1 change: 1 addition & 0 deletions units/UAB0201/UAB0201_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

local ALandFactoryUnit = import('/lua/aeonunits.lua').ALandFactoryUnit

---@class UAB0201 : ALandFactoryUnit
UAB0201 = Class(ALandFactoryUnit) { }

TypeClass = UAB0201
1 change: 1 addition & 0 deletions units/UAB0202/UAB0202_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
--** Copyright © 2005 Gas Powered Games, Inc. All rights reserved.
--****************************************************************************
local AAirFactoryUnit = import('/lua/aeonunits.lua').AAirFactoryUnit
---@class UAB0202 : AAirFactoryUnit
UAB0202 = Class(AAirFactoryUnit) {}

TypeClass = UAB0202
1 change: 1 addition & 0 deletions units/UAB0203/UAB0203_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--****************************************************************************

local ASeaFactoryUnit = import('/lua/aeonunits.lua').ASeaFactoryUnit
---@class UAB0203 : ASeaFactoryUnit
UAB0203 = Class(ASeaFactoryUnit) {}

TypeClass = UAB0203
Expand Down
1 change: 1 addition & 0 deletions units/UAB0301/UAB0301_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

local ALandFactoryUnit = import('/lua/aeonunits.lua').ALandFactoryUnit

---@class UAB0301 : ALandFactoryUnit
UAB0301 = Class(ALandFactoryUnit) {}

TypeClass = UAB0301
1 change: 1 addition & 0 deletions units/UAB0302/UAB0302_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
--** Copyright © 2005 Gas Powered Games, Inc. All rights reserved.
--****************************************************************************
local AAirFactoryUnit = import('/lua/aeonunits.lua').AAirFactoryUnit
---@class UAB0302 : AAirFactoryUnit
UAB0302 = Class(AAirFactoryUnit) {}

TypeClass = UAB0302
1 change: 1 addition & 0 deletions units/UAB0303/UAB0303_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--****************************************************************************

local ASeaFactoryUnit = import('/lua/aeonunits.lua').ASeaFactoryUnit
---@class UAB0303 : ASeaFactoryUnit
UAB0303 = Class(ASeaFactoryUnit) {
OnCreate = function(self)
ASeaFactoryUnit.OnCreate(self)
Expand Down
1 change: 1 addition & 0 deletions units/UAB0304/UAB0304_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
local AQuantumGateUnit = import('/lua/aeonunits.lua').AQuantumGateUnit
local AQuantumGateAmbient = import('/lua/EffectTemplates.lua').AQuantumGateAmbient

---@class UAB0304 : AQuantumGateUnit
UAB0304 = Class(AQuantumGateUnit) {

OnStopBeingBuilt = function(self,builder,layer)
Expand Down
1 change: 1 addition & 0 deletions units/UAB1101/UAB1101_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--****************************************************************************
local AEnergyCreationUnit = import('/lua/aeonunits.lua').AEnergyCreationUnit

---@class UAB1101 : AEnergyCreationUnit
UAB1101 = Class(AEnergyCreationUnit) {
AmbientEffects = 'AT1PowerAmbient',

Expand Down
1 change: 1 addition & 0 deletions units/UAB1102/UAB1102_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--****************************************************************************

local AEnergyCreationUnit = import('/lua/aeonunits.lua').AEnergyCreationUnit
---@class UAB1102 : AEnergyCreationUnit
UAB1102 = Class(AEnergyCreationUnit) {

AirEffects = {'/effects/emitters/hydrocarbon_smoke_01_emit.bp',},
Expand Down
1 change: 1 addition & 0 deletions units/UAB1103/UAB1103_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

local AMassCollectionUnit = import('/lua/aeonunits.lua').AMassCollectionUnit

---@class UAB1103 : AMassCollectionUnit
UAB1103 = Class(AMassCollectionUnit) {

OnStartBuild = function(self, unitBeingBuilt, order)
Expand Down
1 change: 1 addition & 0 deletions units/UAB1104/UAB1104_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
----****************************************************************************
local AMassFabricationUnit = import('/lua/aeonunits.lua').AMassFabricationUnit

---@class UAB1104 : AMassFabricationUnit
UAB1104 = Class(AMassFabricationUnit) {
OnCreate = function(self)
AMassFabricationUnit.OnCreate(self)
Expand Down
1 change: 1 addition & 0 deletions units/UAB1105/UAB1105_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--****************************************************************************
local AEnergyStorageUnit = import('/lua/aeonunits.lua').AEnergyStorageUnit

---@class UAB1105 : AEnergyStorageUnit
UAB1105 = Class(AEnergyStorageUnit) {

OnStopBeingBuilt = function(self,builder,layer)
Expand Down
1 change: 1 addition & 0 deletions units/UAB1106/UAB1106_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

local AMassStorageUnit = import('/lua/aeonunits.lua').AMassStorageUnit

---@class UAB1106 : AMassStorageUnit
UAB1106 = Class(AMassStorageUnit) {

OnStopBeingBuilt = function(self,builder,layer)
Expand Down
1 change: 1 addition & 0 deletions units/UAB1201/UAB1201_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--****************************************************************************
local AEnergyCreationUnit = import('/lua/aeonunits.lua').AEnergyCreationUnit

---@class UAB1201 : AEnergyCreationUnit
UAB1201 = Class(AEnergyCreationUnit) {
AmbientEffects = 'AT2PowerAmbient',

Expand Down
1 change: 1 addition & 0 deletions units/UAB1202/UAB1202_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

local AMassCollectionUnit = import('/lua/aeonunits.lua').AMassCollectionUnit

---@class UAB1202 : AMassCollectionUnit
UAB1202 = Class(AMassCollectionUnit) {

OnStartBuild = function(self, unitBeingBuilt, order)
Expand Down
Loading

0 comments on commit d83462c

Please sign in to comment.