cls_cmd.lua

socketmud/scripts/cmd_data/cls_cmd.lua · 533 B

From the archive socketmud-lua.v2.tar.gz

Download the archive   « Back to the archive contents

cmd_list = {};

cls_cmd = {}
local cls_cmd_real = {};
local cls_cmd_secure = {}

--TODO: Replace plr with brain later.
function cls_cmd_real:func(brain, arg)
	text_to_player(brain, "This command has not yet been implemented.\n\r");
end
cls_cmd_secure.func = 1;
function cls_cmd_real:register(name)
	if name == nil then
		return false;
	end
	
	cmd_list[name] = self;
end
cls_cmd_secure.register = 1
cls_cmd_real.security = 1;
cls_cmd_secure.security = 2;

cls_cmd = newObj(cls_cmd_real, cls_cmd_secure, nil) 

Site Stats

Snippets: 1791
Codebases: 571