Phantasmal Site > Phantasmal API > API Listing > add_room_object
API Function: add_room_object
- Summary:
- register a room object with the MapD
- Defined In LPC Object:
- /usr/common/sys/mapd.c
- Prototype:
- void add_room_object(object room)
- Can Be Called By:
- System, Common, Game
- Description:
-
Registers a room object with MapD. The room does this for itself
when its create() function is called. Any room that doesn't, but
that is later added to MapD, will generate an error.
This does not assign a room number to the room, it simply makes
sure that the MapD has seen the room at least once.
- Return Value:
-
None.
- Errors:
- Registering an already-registered room will cause an error.
- See Also:
- add_room_to_zone
|