[Crossfire-wiki] [Crossfire DokuWiki] page changed: dev:objects

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Sat Jan 5 17:00:11 CST 2008


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2008/01/05 17:00
User        : ryo
Edit Summary: fix format

@@ -1823,38 +1823,28 @@
  		to the code from lighting. Also, some new archs instroduced,
  		namely "flint and steel" for lighting stuff on fire and
  		"torch" a source of light.
                  
- 
  
  ====== How to add new values ======
  
   This section details how to add new fields/flags to an object structure.
  
- 1) Send mail to the development list to make sure that a new element is really
-    added.
+ 1) Send mail to the development list to make sure that a new element is really added.
  
  For flags:
  
- 2) Update the FLAG_.. entries in include/define.h for your new flag.  Recycle unused
-    values if possible - there may be cases where you want to group the new flags together.
-    If you are adding beyond the end of the existing values, update the NUM_FLAGS entry
+ 2) Update the FLAG_.. entries in include/define.h for your new flag.  Recycle unused values if possible - there may be cases where you want to group the new flags together. If you are adding beyond the end of the existing values, update the NUM_FLAGS entry
  
- 3) Decide the name of your flag as loaded/saved in objects.  The default syntax is
-    the name you assigned in step 2 above, minus the leading flag_ part.
+ 3) Decide the name of your flag as loaded/saved in objects.  The default syntax is the name you assigned in step 2 above, minus the leading flag_ part.
  
- 4) In the common/loader.l, update the load section (where the code is mostly ^value  
-    SET_OR_CLEAR(...)) add  your entries in.
+ 4) In the common/loader.l, update the load section (where the code is mostly ^value SET_OR_CLEAR(...)) add  your entries in.
  
- 5) update the flag_names in common/loader.l.  The location of your names _must_ be
-    in the same array location as the FLAG_ value.
+ 5) update the flag_names in common/loader.l.  The location of your names _must_ be in the same array location as the FLAG_ value.
  
- 6) Update other areas of the code that you presumably know about that will use these
-    flag values.
+ 6) Update other areas of the code that you presumably know about that will use these flag values.
  
  7) As appropriate, update the arch files and rebuild.
- 
- 
  
  ====== Programming notes ======
  
  This section provides some specific programming notes about objects.  If


IP-Address  : 82.236.87.204
Old Revision: http://wiki.metalforge.net/doku.php/dev:objects?rev=1198883892
New Revision: http://wiki.metalforge.net/doku.php/dev:objects

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/




More information about the crossfire-wiki mailing list