Skip to content

Commit

Permalink
Update system to make DUSystem be an instance and not a function and …
Browse files Browse the repository at this point in the history
…fix compile error
  • Loading branch information
PerMalmberg authored Sep 18, 2022
1 parent 09e356a commit 3c39693
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api-mockup/system.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ LUA_ACTION = {

--- This class represents the System who is executing the control unit
---@class System
System = {}
System.__index = System
system = {}
system.__index = system
function System()
local self = {}

Expand Down Expand Up @@ -371,8 +371,8 @@ function System()
---@param msg string
function self.print(msg) end

return setmetatable(self, System)
return setmetatable(self, system)
end

--- Global alias available out of the game
DUSystem = System
DUSystem = System()

0 comments on commit 3c39693

Please sign in to comment.