--- deliantra/server/include/object.h 2007/02/10 01:52:27 1.99 +++ deliantra/server/include/object.h 2007/02/16 19:43:41 1.100 @@ -241,6 +241,10 @@ 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? + 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); + bool write (object_freezer &f); + MTH static object *create (); MTH void copy_to (object *dst); MTH object *clone (); // create + copy_to @@ -277,13 +281,7 @@ open_container (0); } - MTH void instantiate () - { - if (!uuid.seq) // HACK - uuid = gen_uuid (); - - attachable::instantiate (); - } + MTH void instantiate (); // recalculate all stats MTH void update_stats (); @@ -485,6 +483,7 @@ ~archetype (); void gather_callbacks (AV *&callbacks, event_type event) const; + static archetype *read (object_thawer &f); static archetype *find (const char *name); void hash_add (); // add to hashtable