ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/map.h
(Generate patch)

Comparing deliantra/server/include/map.h (file contents):
Revision 1.153 by root, Wed Nov 16 23:42:00 2016 UTC vs.
Revision 1.154 by root, Sun Jan 29 02:47:05 2017 UTC

249struct shopitems : zero_initialised 249struct shopitems : zero_initialised
250{ 250{
251 const char *name; /* name of the item in question, null if it is the default item */ 251 const char *name; /* name of the item in question, null if it is the default item */
252 const char *name_pl; /* plural name */ 252 const char *name_pl; /* plural name */
253 int typenum; /* itemtype number we need to match 0 if it is the default price */ 253 int typenum; /* itemtype number we need to match 0 if it is the default price */
254 sint8 strength; /* the degree of specialisation the shop has in this item, 254 sint8 strength; /* the degree of specialisation the shop has in this item,
255 * as a percentage from -100 to 100 */ 255 * as a percentage from -100 to 100 */
256 int index; /* being the size of the shopitems array. */ 256 int index; /* being the size of the shopitems array. */
257}; 257};
258 258
259// map I/O, what to load/save 259// map I/O, what to load/save
261 IO_HEADER = 0x01, // the "arch map" pseudo object 261 IO_HEADER = 0x01, // the "arch map" pseudo object
262 IO_OBJECTS = 0x02, // the non-unique objects 262 IO_OBJECTS = 0x02, // the non-unique objects
263 IO_UNIQUES = 0x04, // unique objects 263 IO_UNIQUES = 0x04, // unique objects
264}; 264};
265 265
266/* In general, code should always use the macros 266/* In general, code should always use the macros
267 * above (or functions in map.c) to access many of the 267 * above (or functions in map.c) to access many of the
268 * values in the map structure. Failure to do this will 268 * values in the map structure. Failure to do this will
269 * almost certainly break various features. You may think 269 * almost certainly break various features. You may think
270 * it is safe to look at width and height values directly 270 * it is safe to look at width and height values directly
271 * (or even through the macros), but doing so will completely 271 * (or even through the macros), but doing so will completely
272 * break map tiling. 272 * break map tiling.
280 region_ptr *regionmap; /* index to region */ 280 region_ptr *regionmap; /* index to region */
281 281
282 tstamp ACC (RW, last_access); /* last time this map was accessed somehow */ 282 tstamp ACC (RW, last_access); /* last time this map was accessed somehow */
283 283
284 shstr ACC (RW, name); /* Name of map as given by its creator */ 284 shstr ACC (RW, name); /* Name of map as given by its creator */
285 region_ptr ACC (RW, default_region); /* What jurisdiction in the game world this map is ruled by 285 region_ptr ACC (RW, default_region); /* What jurisdiction in the game world this map is ruled by
286 * points to the struct containing all the properties of 286 * points to the struct containing all the properties of
287 * the region */ 287 * the region */
288 double ACC (RW, reset_time); 288 double ACC (RW, reset_time);
289 uint32 ACC (RW, reset_timeout); /* How many seconds must elapse before this map 289 uint32 ACC (RW, reset_timeout); /* How many seconds must elapse before this map
290 * should be reset 290 * should be reset
291 */ 291 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines