NXEngine v1.0.0.3
[NXEngine.git] / tsc.fdh
blob99559966210e0b4dc4076f0768c666cadb19c20f
1 //hash:a5b57e94
2 //automatically generated by Makegen
4 /* located in game.cpp */
6 //----------------------[referenced from tsc.cpp]--------------------//
7 bool game_save(Profile *p);
10 /* located in ObjManager.cpp */
12 //----------------------[referenced from tsc.cpp]--------------------//
13 Object *CreateObject(int x, int y, int type);
16 /* located in map.cpp */
18 //----------------------[referenced from tsc.cpp]--------------------//
19 void map_scroll_lock(bool lockstate);
20 void map_show_map_name();
21 Object *FindObjectByID2(int id2);
22 void map_focus(Object *o, int spd);
25 /* located in platform.cpp */
27 //----------------------[referenced from tsc.cpp]--------------------//
28 FILE *fileopen(const char *fname, const char *mode);
31 /* located in player.cpp */
33 //----------------------[referenced from tsc.cpp]--------------------//
34 void PSelectSprite(void);
35 void PSelectFrame(void);
38 /* located in playerstats.cpp */
40 //----------------------[referenced from tsc.cpp]--------------------//
41 void GetWeapon(int wpn, int ammo);
42 void LoseWeapon(int wpn);
43 void TradeWeapon(int oldwpn, int newwpn, int ammo);
44 void AddInventory(int item);
45 void DelInventory(int item);
46 int FindInventory(int item);
47 void AddHealth(int hp);
48 void RefillAllAmmo(void);
51 /* located in tsc.cpp */
53 //----------------------[referenced from tsc.cpp]--------------------//
54 void Clear();
55 static void GenLTC(void);
56 static int MnemonicToIndex(const char *str);
57 static int MnemonicToOpcode(char *str);
58 bool tsc_init(void);
59 void tsc_close(void);
60 bool tsc_load(const char *fname, int pageno);
61 char *tsc_decrypt(const char *fname, int *fsize_out);
62 bool tsc_compile(const char *buf, int bufsize, int pageno);
63 static char nextchar(const char **buf, const char *buf_end);
64 static int ReadNumber(const char **buf, const char *buf_end);
65 static void ReadText(DBuffer *script, const char **buf, const char *buf_end);
66 void RunScripts(void);
67 void StopScripts(void);
68 int GetCurrentScript(void);
69 ScriptInstance *GetCurrentScriptInstance();
70 const uint8_t *FindScriptData(int scriptno, int pageno, int *page_out);
71 ScriptInstance *StartScript(int scriptno, int pageno);
72 void StopScript(ScriptInstance *s);
73 bool JumpScript(int newscriptno, int pageno);
74 void ExecScript(ScriptInstance *s);
75 int CVTDir(int csdir);
76 const char *DescribeCSDir(int csdir);
77 void SetCSDir(Object *o, int csdir);
78 void SetPDir(int d);
79 void NPCDo(int id2, int p1, int p2, void (*action_function)(Object *o, int p1, int p2));
80 void DoANP(Object *o, int p1, int p2);
81 void DoCNP(Object *o, int p1, int p2);
82 void DoDNP(Object *o, int p1, int p2);
83 void crtoslashn(const char *in, char *out);
84 bool contains_non_cr(const char *str);
87 /* located in inventory.cpp */
89 //----------------------[referenced from tsc.cpp]--------------------//
90 void UnlockInventoryInput(void);
93 /* located in debug.cpp */
95 //----------------------[referenced from tsc.cpp]--------------------//
96 const char *DescribeObjectType(int type);
99 /* located in niku.cpp */
101 //----------------------[referenced from tsc.cpp]--------------------//
102 bool niku_save(uint32_t value);
105 /* located in ai/sym/smoke.cpp */
107 //----------------------[referenced from tsc.cpp]--------------------//
108 void SmokeXY(int x, int y, int nclouds, int rangex, int rangey, Object *push_behind);
111 /* located in endgame/credits.cpp */
113 //----------------------[referenced from tsc.cpp]--------------------//
114 void credit_set_image(int imgno);
115 void credit_clear_image();
118 /* located in sound/sound.cpp */
120 //----------------------[referenced from tsc.cpp]--------------------//
121 void sound(int snd);
122 void music(int songno);
123 int music_lastsong();
124 void StartStreamSound(int freq);
125 void StartPropSound(void);
126 void StopLoopSounds(void);
129 /* located in sound/org.cpp */
131 //----------------------[referenced from tsc.cpp]--------------------//
132 void org_fade(void);
135 /* located in common/stat.cpp */
137 //----------------------[referenced from tsc.cpp]--------------------//
138 void staterr(const char *fmt, ...);
139 void stat(const char *fmt, ...);
142 /* located in common/misc.cpp */
144 //----------------------[referenced from tsc.cpp]--------------------//
145 char *stprintf(const char *fmt, ...);