Initial check-in of icontext work.

This commit is contained in:
Bart House
2018-11-22 13:01:58 -08:00
parent 247626dfe5
commit 455d2769e0
11 changed files with 325 additions and 5 deletions

View File

@@ -192,6 +192,8 @@ E NEARDATA char dogname[];
E NEARDATA char catname[];
E NEARDATA char horsename[];
E char preferred_pet;
E int petname_used;
E const char *occtxt; /* defined when occupation != NULL */
E const char *nomovemsg;
E char lock[];
@@ -437,6 +439,22 @@ struct early_opt {
boolean valallowed;
};
/* instance_context holds per game instance data that does not need to be
* persisted upon game exit. This game instance data is one of the first
* things initialized during the initialization of the game engine.
* It is initialized with icontext_initial_state found in decl.c */
#define PLAYAGAIN
struct instance_context {
int oldcap; /* encumberance - pickup.c */
};
E struct instance_context icontext;
E void icontext_init();
#undef E
#endif /* DECL_H */