ripple-new / GameLogic / Base / Command.lua
Command.lua
Raw
package.path = package.path .. ";../../../../?/?.lua"
require("Functions.GlobalFunctions")

Command = {
    type = "Command",
    id = "Nil",
    name = "command",
    description = "description"
}


function Command:New(o, name, description)
    o = o or {};
    setmetatable(o, self);
    self.__index = self;
    if name ~= nil then self.name = name end
    if description ~= nil then self.description = description end
    return o;
end

function Command:Execute(module)
    print("Command[".. self.name .."]: Command Executed!");
end