Use EmmyLua docs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ require("GameManager/SkirmishGameClass")
|
||||
local DebugCounter = 0
|
||||
|
||||
---Debugging service rate.
|
||||
local ServiceDebugRate = 10
|
||||
local ServiceDebugRate = 5
|
||||
|
||||
---The Local Player FoC PlayerWrapper object.
|
||||
local LocalPlayer = nil
|
||||
|
||||
Reference in New Issue
Block a user