Always use a real type with Def; don't say "Def.Layer". If you don't

know the type you're using, you should be using LoadActor.
This commit is contained in:
Glenn Maynard
2006-10-15 05:56:30 +00:00
parent 61e58cd51f
commit 68064ec6aa
@@ -41,9 +41,11 @@ setmetatable( Def, {
-- t is an actor definition table. name is the type
-- given to Def. Fill in standard fields.
return function(t)
if not t.Type then
t.Type = Type;
if not ActorUtil.IsRegisteredType(Type) then
error( Type .. " is not a registered type", 2 );
end
t.Type = Type;
local level = 2
if t._Level then