/************************************************************************ Realms of Aurealis James Rhone aka Vall of RoA assem.h Header file for object assembly. ******** Heavily modified and expanded ******** *** BE AWARE OF ALL RIGHTS AND RESERVATIONS *** ******** Heavily modified and expanded ******** All rights reserved henceforth. Please note that no guarantees are associated with any code from Realms of Aurealis. All code which has been released to the general public has been done so with an 'as is' pretense. RoA is based on both Diku and CircleMUD and ALL licenses from both *MUST* be adhered to as well as the RoA license. *** Read, Learn, Understand, Improve *** *************************************************************************/ #ifndef ROA_ASSEM_H #define ROA_ASSEM_H #define ASSEMBLY_FILE "config/assem.cfg" #define NUM_COMPONENTS 10 #define MAX_PRIO 10 #define MAX_ASSEMBLES 50 #define ATABLE(num) (assembly_table[(num)]) #define ATABLE_COMP(x, y) (assembly_table[(x)].components[(y)]) typedef struct assembly_type { int vnum; int priority; int components[NUM_COMPONENTS]; } assemtype; // prototypes... obdata *find_vnum_inv_vis(int vnum, chdata *ch); void show_assem_table(chdata *ch); int find_num_in_array(int, int *, int); // internal / global structures assemtype assembly_table[MAX_ASSEMBLES]; #endif /* ROA_ASSEM_H */