summaryrefslogtreecommitdiff
path: root/src/port/resource/type/Vec3sArray.h
blob: 06c86ea0dfcba0a4a67ef1147cbb607f52e542d7 (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
#pragma once

#include <cstdint>
#include <ship/resource/Resource.h>
#include <libultraship/libultra/types.h>

namespace SF64 {

struct Vec3sData {
    int16_t x, y, z;
    Vec3sData(int16_t x, int16_t y, int16_t z) : x(x), y(y), z(z) {
    }
};

class Vec3sArray : public Ship::Resource<Vec3sData> {
  public:
    using Resource::Resource;

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

    Vec3sData* GetPointer();
    size_t GetPointerSize();

    std::vector<Vec3sData> mData;
};
} // namespace SF64