--- deliantra/server/include/object.h 2007/03/14 00:04:58 1.104 +++ deliantra/server/include/object.h 2007/04/16 13:02:29 1.107 @@ -200,7 +200,6 @@ /* Following are values used by any object */ /* this objects turns into or what this object creates */ treasurelist *ACC (RW, randomitems); /* Items to be generated */ - key_value *key_values; /* Fields not explictly known by the loader. */ flags_t flag; /* various flags */ #if FOR_PERL bool ACC (RW, flag[NUM_FLAGS]); @@ -240,12 +239,14 @@ object *ACC (RW, more); /* Pointer to the rest of a large body of objects */ object *head; /* Points to the main object of a large body */ // NO ACC, perl semantics are different client_container *seen_by; // seen by which player/container currently? + key_value *key_values; /* Fields not explictly known by the loader. */ bool parse_kv (object_thawer &f); // parse kv pairs, (ab-)used by archetypes, which should not exist at all static object *read (object_thawer &f, maptile *map = 0); // map argument due to toal design bogosity, must go. bool write (object_freezer &f); MTH static object *create (); + object &operator =(const object &src); MTH void copy_to (object *dst); MTH object *clone (); // create + copy_to void do_destroy (); @@ -483,7 +484,8 @@ ~archetype (); void gather_callbacks (AV *&callbacks, event_type event) const; - static archetype *read (object_thawer &f); + static bool load (object_thawer &f); + static archetype *get (const char *name); // find or create static archetype *find (const char *name); void hash_add (); // add to hashtable @@ -495,6 +497,7 @@ struct archetype *ACC (RW, more); /* Next part of a linked object */ object ACC (RO, clone); /* An object from which to do ->copy_to () */ uint32 ACC (RW, editable); /* editable flags (mainly for editor) */ + bool ACC (RW, linked); // linked into list of heads sint8 ACC (RW, tail_x), ACC (RW, tail_y); /* Where the lower right most portion of the object is * in comparison to the head. */