OpenMoHAA 0.82.1
Loading...
Searching...
No Matches
tiki_parse.h
1/*
2===========================================================================
3Copyright (C) 2023 the OpenMoHAA team
4
5This file is part of OpenMoHAA source code.
6
7OpenMoHAA source code is free software; you can redistribute it
8and/or modify it under the terms of the GNU General Public License as
9published by the Free Software Foundation; either version 2 of the License,
10or (at your option) any later version.
11
12OpenMoHAA source code is distributed in the hope that it will be
13useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with OpenMoHAA source code; if not, write to the Free Software
19Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20===========================================================================
21*/
22
23#pragma once
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29 const char *TIKI_FileExtension(const char *in);
30 void TIKI_ParseFrameCommands(dloaddef_t *ld, dloadframecmd_t **cmdlist, int maxcmds, int *numcmds);
31 void TIKI_ParseAnimationCommands(dloaddef_t *ld, dloadanim_t *anim);
32 void TIKI_ParseAnimationFlags(dloaddef_t *ld, dloadanim_t *anim);
33 void TIKI_ParseAnimationsFail(dloaddef_t *ld);
34 qboolean TIKI_ParseIncludes(dloaddef_t *ld);
35 void TIKI_ParseAnimations(dloaddef_t *ld);
36 int TIKI_ParseSurfaceFlag(const char *token);
37 void TIKI_InitSetup(dloaddef_t *ld);
38 dloadanim_t *TIKI_AllocAnim(dloaddef_t *ld);
39
40#ifdef __cplusplus
41 qboolean TIKI_LoadSetupCaseHeader(
42 dtiki_t *tiki,
43 const char *filename,
44 dloadsurface_t *loadsurfaces,
45 int *numSurfacesSetUp,
46 msg_t *msg,
47 qboolean skip,
48 con_map<str, str> *keyValues
49 );
50 qboolean TIKI_LoadSetupCase(
51 dtiki_t *tiki,
52 const char *filename,
53 dloadsurface_t *loadsurfaces,
54 int *numSurfacesSetUp,
55 msg_t *msg,
56 qboolean skip,
57 con_map<str, str> *keyValues
58 );
59 qboolean TIKI_LoadSetup(
60 dtiki_t *tiki,
61 const char *filename,
62 dloadsurface_t *loadsurfaces,
63 int *numSurfacesSetUp,
64 byte *modelData,
65 size_t modelDataSize,
66 con_map<str, str> *keyValues
67 );
68 bool TIKI_strstr(const char *s, const char *substring);
69#endif
70
71 qboolean TIKI_ParseSetup(dloaddef_t *ld);
72 void TIKI_ParseInitCommands(dloaddef_t *ld, dloadinitcmd_t **cmdlist, int maxcmds, int *numcmds);
73 void TIKI_ParseInit(dloaddef_t *ld);
74 qboolean TIKI_ParseCase(dloaddef_t *ld);
75
76#ifdef __cplusplus
77}
78#endif
79
80void WriteSkelmodel(dloaddef_t* ld, const char* name);
Definition con_set.h:547
Definition tiki.h:113
Definition tiki.h:93
Definition tiki.h:100
Definition tiki.h:105