[Crossfire-wiki] [Crossfire DokuWiki] page changed: server_plugin
no-reply_wiki at metalforge.org
no-reply_wiki at metalforge.org
Thu Mar 22 06:14:24 CDT 2007
A page in your DokuWiki was added or changed. Here are the details:
Date : 2007/03/22 06:14
User : ryo
Edit Summary: s/field/item for clarity
@@ -273,13 +273,14 @@
}
</code>
where ''cfapiObject_get_key'' is the matching hook.
+
===== Linked list handling =====
FIXME correct when changed for other types
- In some cases, objects are linked through the use of a ''next'' field, with a ''first_'' pointer somewhere (includes objects, friendly list, maps, archetypes). Since the ''next'' field will certainly be a property for the object, a convention for getting the ''first_'' field is to call this property getter with a NULL value for the object.
+ In some cases, objects are linked through the use of a ''next'' field, with a ''first_'' pointer somewhere (includes objects, friendly list, maps, archetypes). Since the ''next'' field will certainly be a property for the object, a convention for getting the ''first_'' item is to call this property getter with a NULL value for the object.
Thus, for the ''partylist'' linked list, the server-side functions looks like (parts edited out):
<code>
void* cfapi_party_get_property(int* type, ...)
IP-Address : 172.186.46.252
Old Revision: http://wiki.metalforge.net/doku.php/server_plugin?rev=1174561833
New Revision: http://wiki.metalforge.net/doku.php/server_plugin
--
This mail was generated by DokuWiki at
http://wiki.metalforge.net/
More information about the crossfire-wiki
mailing list