entrance.c
dw_fluffos_v1/lib/d/learning/examples/terrain_map/basic/entrance.c · 558 B
From the archive dw_fluffos_v1.tar.gz
Download the archive « Back to the archive contents
#include <terrain_map.h>
inherit TERRAIN_MAP_OUTSIDE_BASE;
// Important that we return the pathname to our handler.
string query_handler_path() { return __DIR__ + "field_handler"; }
// A standard room setup.
void setup()
{
set_short("field entrance");
set_long("You are at the entrance to a large grassy field.\n");
add_item("path", "Trampled down by the hooves of time.");
add_item("field", "Large and grassy.");
add_item("grass", "It's green, which should come as no surprise at all.");
add_exit("north", __DIR__ + "path:2:0", "road");
}