Use EmmyLua docs
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user