stock.h

eldhamud/src/stock.h · 534 B

From the archive eldhamud.1.0.0.1.tar.gz

Download the archive   « Back to the archive contents

typedef struct stock_data STOCK_DATA;
typedef struct player_stock PLAYER_STOCK;

#define STOCKS_FILE "../system/stocks.dat"
/**
 * Data Structure that defines resources
 */
struct stock_data {
	STOCK_DATA	*next;
	STOCK_DATA	*prev;
	char		*name;
	int			vnum;
	int			resource_constant;
	int			resource_supply;
};

struct player_stock {
	PLAYER_STOCK	*next;
	PLAYER_STOCK	*prev;
	char			*name;
	int				quantity;
};

/**
 * Global value for Resources
 */
STOCK_DATA	  *	first_stock;
STOCK_DATA	  *	last_stock;

Site Stats

Snippets: 1791
Codebases: 571