docs: add more comments

This commit is contained in:
Dan
2021-03-18 16:08:58 +00:00
parent 984d2221cd
commit de186def50
2 changed files with 26 additions and 2 deletions

View File

@@ -130,10 +130,12 @@ function UTIL:Notify( text )
DrawNotification( false, true )
end
-- Prints the given message to the client console
function UTIL:Log( msg )
print( "[Wraith ARS 2X]: " .. msg )
end
-- Used to draw text to the screen, helpful for debugging issues
function UTIL:DrawDebugText( x, y, scale, centre, text )
SetTextFont( 4 )
SetTextProportional( 0 )
@@ -149,6 +151,7 @@ function UTIL:DrawDebugText( x, y, scale, centre, text )
DrawText( x, y )
end
-- Returns if the current resource name is valid
function UTIL:IsResourceNameValid()
return GetCurrentResourceName() == "wk_wars2x"
end