classes.obj_door =
{
_properties = {name = "door", longname = "a door", desc = "You see a doorway, through which you can enter.", static = true }
}
function classes.obj_door:_create(e)
local obj = classes.default._create(self, e);
obj._properties.to = e.ext.to;
obj._properties.longname = e.ext.longname;
return obj;
end
function classes.obj_door:enter(e)
if not self._properties.to then e.person:_tell("You find it physically impossible to pass through the doorway!"); end
e.person:_say("/me enters "..self._properties.longname);
e.person:_sendto(self._properties.to);
end