X-Git-Url: https://plomlompom.com/repos/new_day?a=blobdiff_plain;f=src%2Fserver%2Fmap_object_actions.h;h=17c4b1e3b8c80daa2e72aae089c7e2e0ac265d7c;hb=9591db5a35ff15c0950eb692625d297faefd0646;hp=7b5283fc9cff33f4254626ca79c3b686cb9c2dab;hpb=784a54c9ef27aa2bf0754b2761aee06cbbde270e;p=plomrogue diff --git a/src/server/map_object_actions.h b/src/server/map_object_actions.h index 7b5283f..17c4b1e 100644 --- a/src/server/map_object_actions.h +++ b/src/server/map_object_actions.h @@ -8,16 +8,14 @@ #ifndef MAP_OBJECT_ACTIONS_H #define MAP_OBJECT_ACTIONS_H -#include /* uint8_t, uint23_t */ -#include /* FILE */ +#include /* uint8_t */ struct MapObj; -struct EntrySkeleton; struct MapObjAct { - uint8_t id; /* unique id of map object action; must be >0 */ + uint8_t id; /* identifies action in MapObj.command; therefore must be >0 */ struct MapObjAct * next; void (* func) (struct MapObj *); /* function called after .effort turns */ char * name; /* human-readable identifier */ @@ -26,12 +24,6 @@ struct MapObjAct -/* Read-in to "entry" multi-line entry from MapObjAct config "file", using - * pre-allocated "line", "linemax" and "context" as input for err_try_fgets(). - */ -extern void read_map_object_action(char * line, uint32_t linemax,char * context, - struct EntrySkeleton * entry, FILE * file); - /* Free MapObjAct * chain starting at "moa". */ extern void free_map_object_actions(struct MapObjAct * moa);