Lephisto/src/economy.h

17 lines
329 B
C

#pragma once
typedef struct Commodity_ {
char* name;
char* description;
int low, medium, high; /* Prices. */
} Commodity;
/* Commidity stuff. */
Commodity* commodity_get(const char* name);
int commodity_load(void);
void commodity_free(void);
/* Misc. */
void credits2str(char* str, unsigned int credits, int decimals);