green_door.c

ds2.10/lib/domains/campus/doors/green_door.c · 704 B

From the archive ds2.10.zip

Download the archive   « Back to the archive contents

/*    /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("green room", ([ "id" : ({"green door"}),
                "short" : "a green door",
                "long" : "This is a green door.",
                "lockable" : 1 ]) );
    SetSide("south", ([ "id" : ({"green door","door"}),
                "short" : "a green door",
                "long" : "This is a green door.",
                "lockable" : 1 ]) );
    SetClosed(1);
    SetLocked(1);
}
void init(){
    ::init();
}

Site Stats

Snippets: 1791
Codebases: 571