room.h

tmi2_fluffos_v2/lib/include/room.h · 455 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

inherit "std/room";
#include <ob.h>

#define set_exits(files, dirs) set("exits", merge(dirs, files))
#define set_item_descriptions(items, desc) set("item_desc", merge(items, desc))
#define add_exit(dest, dir) add("exits", ([ dir : dest ]))



mapping merge_arrays(string *x, string *y) {
	mapping foo;
	int i;

	if (sizeof(x) != sizeof(y)) return ([]);
	foo = allocate_mapping(sizeof(y));
	for(i=0;i<sizeof(y); i++) foo[x[i]] = y[i];
	return foo;
}
		


Site Stats

Snippets: 1791
Codebases: 571