28 lines
696 B
C
28 lines
696 B
C
/* /domains/Examples/etc/door.c
|
|
* from the Dead Souls LPC Library
|
|
* an example door object connecting doorroom1.c and doorroom2.c
|
|
* created by Descartes of Borg 950411
|
|
*/
|
|
|
|
#include <lib.h>
|
|
|
|
inherit LIB_DOOR;
|
|
|
|
static void create() {
|
|
door::create();
|
|
SetSide("blue room", ([ "id" : ({"blue door"}),
|
|
"short" : "a blue door",
|
|
"long" : "This is a blue door.",
|
|
"lockable" : 1 ]) );
|
|
SetSide("west", ([ "id" : ({"blue door","door"}),
|
|
"short" : "a blue door",
|
|
"long" : "This is a blue door.",
|
|
"lockable" : 1 ]) );
|
|
SetClosed(1);
|
|
SetLocked(1);
|
|
}
|
|
void init(){
|
|
::init();
|
|
}
|
|
|