… | |
… | |
63 | uint64 seq; |
63 | uint64 seq; |
64 | }; |
64 | }; |
65 | |
65 | |
66 | extern void init_uuid (); |
66 | extern void init_uuid (); |
67 | extern UUID gen_uuid (); |
67 | extern UUID gen_uuid (); |
|
|
68 | extern const uint64 UUID_SKIP; |
68 | |
69 | |
69 | /* Definition for WILL_APPLY values. Replaces having harcoded values |
70 | /* Definition for WILL_APPLY values. Replaces having harcoded values |
70 | * sprinkled in the code. Note that some of these also replace fields |
71 | * sprinkled in the code. Note that some of these also replace fields |
71 | * that were in the can_apply area. What is the point of having both |
72 | * that were in the can_apply area. What is the point of having both |
72 | * can_apply and will_apply? |
73 | * can_apply and will_apply? |
… | |
… | |
88 | // these are not being copied |
89 | // these are not being copied |
89 | ACC_CLASS (object) |
90 | ACC_CLASS (object) |
90 | struct object_keep : refcounted |
91 | struct object_keep : refcounted |
91 | { |
92 | { |
92 | tag_t ACC (RW, count); /* Generation count for this object */ |
93 | tag_t ACC (RW, count); /* Generation count for this object */ |
93 | UUID uuid; // Unique Identifier, survives saves etc. |
94 | UUID ACC (RW, uuid); // Unique Identifier, survives saves etc. |
94 | |
95 | |
95 | /* These variables are not changed by copy_object() */ |
96 | /* These variables are not changed by copy_object() */ |
96 | player *ACC (RW, contr); /* Pointer to the player which control this object */ |
97 | player *ACC (RW, contr); /* Pointer to the player which control this object */ |
97 | object *ACC (RW, next); /* Pointer to the next object in the free/used list */ |
98 | object *ACC (RW, next); /* Pointer to the next object in the free/used list */ |
98 | object *ACC (RW, prev); /* Pointer to the previous object in the free/used list */ |
99 | object *ACC (RW, prev); /* Pointer to the previous object in the free/used list */ |