blob: 3e57240c62a088a4288043fd24e57b197fadc54c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#pragma once
#include "Limb.h"
#include <cstdint>
#include <Resource.h>
namespace SF64 {
struct ObjectInitData {
/* 0x00 */ float zPos1;
/* 0x04 */ int16_t zPos2;
/* 0x06 */ int16_t xPos;
/* 0x08 */ int16_t yPos;
/* 0x0A */ Vec3s rot;
/* 0x10 */ int16_t id;
}; // size = 0x14
// Renamed from ObjectInit to prevent clashing with Torch of same namespace
class ObjectInitResource : public Ship::Resource<ObjectInitData> {
public:
using Resource::Resource;
ObjectInitResource() : Resource(std::shared_ptr<Ship::ResourceInitData>()) {}
ObjectInitData* GetPointer();
size_t GetPointerSize();
std::vector<ObjectInitData> mObjects;
};
}
|