Use EmmyLua docs

This commit is contained in:
2026-03-09 20:02:58 -05:00
parent 12a8addb7c
commit 7226e4891f
7 changed files with 2201 additions and 154 deletions

View File

@@ -86,6 +86,7 @@ function GUIManager:Service()
ServiceGameTime(self.TacticalGame)
ServiceTeamCredits(self.SkirmishGame)
--ServiceUnitDisplay(self.SkirmishGame, self.ShowTeamId)
ServiceScreenText(self.SkirmishGame)
end
---Services Game Time display.
@@ -169,11 +170,16 @@ function ServiceUnitDisplay(skirmishGame, teamId)
return
end
local localPlayer = Find_Player("local")
if not localPlayer then
return
end
local function DisplayTeamUnit(unit, uiComponent)
end
local localPlayer = Find_Player("local")
local players = skirmishGame:GetPlayersOnTeam(teamId)
---@type table<string, integer> Units Table by name with alive count.
local units = {}
@@ -192,3 +198,6 @@ function ServiceUnitDisplay(skirmishGame, teamId)
end
end
end
function ServiceScreenText(skirmishGame)
end

View File

@@ -24,6 +24,7 @@ function SkirmishGameClass:New(gameMode)
local function FindSpectators()
---@type SpectatorStruct[]
local spectators = {}
---@type string
local spectatorMarker = nil
if StringCompare(gameMode, "Space") then
@@ -57,6 +58,10 @@ function SkirmishGameClass:New(gameMode)
local function GetLocalSpectator()
local localPlayer = Find_Player("local")
if not localPlayer then
return false
end
return self:GetSpectator(localPlayer.Get_ID()) ~= nil
end