summaryrefslogtreecommitdiff
path: root/src/port/resource/type/Limb.h
blob: 2a485834b8d551da3067ffbe17d2c938d228f65e (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
32
33
34
35
36
37
#pragma once

#include <cstdint>
#include <Resource.h>

namespace SF64 {

struct Vec3f {
    float x, y, z;
};

struct Vec3s {
    int16_t x, y, z;
};

struct Gfx;

struct LimbData {
    /* 0x000 */ Gfx* dList;
    /* 0x004 */ Vec3f trans;
    /* 0x010 */ Vec3s rot;
    /* 0x018 */ LimbData* sibling;
    /* 0x01C */ LimbData* child;
}; // size = 0x20

class Limb : public Ship::Resource<LimbData> {
  public:
    using Resource::Resource;

    Limb() : Resource(std::shared_ptr<Ship::ResourceInitData>()) {}

    LimbData* GetPointer();
    size_t GetPointerSize();

    LimbData mData{};
};
}