2021-07-05 05:44:58 +00:00
|
|
|
typedef unsigned int unit;
|
|
|
|
|
2021-07-08 05:37:18 +00:00
|
|
|
typedef struct Atom Atom;
|
|
|
|
|
|
|
|
struct Atom {
|
2021-07-05 05:44:58 +00:00
|
|
|
char name[16];
|
2021-09-02 17:03:18 +00:00
|
|
|
char value[64];
|
2021-07-08 05:37:18 +00:00
|
|
|
Atom* next;
|
|
|
|
};
|
2021-07-05 05:44:58 +00:00
|
|
|
|
|
|
|
typedef struct Universe {
|
2021-07-08 05:37:18 +00:00
|
|
|
Atom* atoms[256];
|
2021-07-05 05:44:58 +00:00
|
|
|
} Universe;
|
2021-07-08 05:37:18 +00:00
|
|
|
|
|
|
|
Universe* create_universe();
|
2021-07-28 05:50:16 +00:00
|
|
|
Universe* parse_universe(char* cart, char* realm_name);
|
2021-07-19 04:58:08 +00:00
|
|
|
void save_universe(char* cart, Universe* self, char* realm_name);
|
2021-07-10 06:46:04 +00:00
|
|
|
void set_atom(Universe* self, Atom* atom);
|
2021-07-08 05:37:18 +00:00
|
|
|
Atom* get_atom(Universe* self, char* name);
|
|
|
|
void remove_atom(Universe* self, char* name);
|
|
|
|
void destroy_universe(Universe* self);
|