LibT2FS 0.1
C API for accessing TEngine data in memory.
Loading...
Searching...
No Matches
spawnpoints.h
Go to the documentation of this file.
1/* This file is part of LibT2FS.
2 *
3 * LibT2FS is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
7 *
8 * LibT2FS is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <https://www.gnu.org/licenses/>.
15 */
16
17#ifndef H_T2FS_SPAWNPOINTS
18#define H_T2FS_SPAWNPOINTS
19
20#include <stdint.h>
21
22#include "models/common.h"
23
28typedef struct __attribute__((__packed__)) s_T2FSDataLevelSpawnPoint {
30 float rotz;
31 uint16_t levelId;
32 uint16_t regionId;
34
36
37int
38t2fs_spawnpoints_load(T2FSContext *ctx, uint16_t levelId)
39{
40 if (!ctx->spawnpoints) {
41 return 1;
42 }
43
44
45 return 0;
46}
47
48#endif
struct s_T2FSDataLevelSpawnPoint T2FSDataLevelSpawnPoint
struct s_T2FSDataCoordF32 T2FSDataCoordF32
#define SASSERT_SIZE(what, size)
Definition models/common.h:26
int t2fs_spawnpoints_load(T2FSContext *ctx, uint16_t levelId)
Definition spawnpoints.h:38
Definition spawnpoints.h:28
float rotz
Definition spawnpoints.h:30
T2FSDataCoordF32 position
Definition spawnpoints.h:29
uint16_t levelId
Definition spawnpoints.h:31
uint16_t regionId
Definition spawnpoints.h:32
struct s_T2FSContext T2FSContext
This is the core LibT2FS object that you will be passing around.
Definition t2fs.h:53