stop putting things in the LUS namespace from SoH

This commit is contained in:
briaguya 2024-02-09 14:25:55 -05:00
commit 0ead6056e6
75 changed files with 75 additions and 265 deletions

View file

@ -1,6 +1,5 @@
#include "Animation.h" #include "Animation.h"
namespace LUS {
AnimationData* Animation::GetPointer() { AnimationData* Animation::GetPointer() {
return &animationData; return &animationData;
} }
@ -18,4 +17,3 @@ size_t Animation::GetPointerSize() {
return 0; return 0;
} }
} }
} // namespace LUS

View file

@ -1,6 +1,5 @@
#include "AudioSample.h" #include "AudioSample.h"
namespace LUS {
Sample* AudioSample::GetPointer() { Sample* AudioSample::GetPointer() {
return &sample; return &sample;
} }
@ -8,4 +7,3 @@ Sample* AudioSample::GetPointer() {
size_t AudioSample::GetPointerSize() { size_t AudioSample::GetPointerSize() {
return sizeof(Sample); return sizeof(Sample);
} }
} // namespace LUS

View file

@ -5,22 +5,21 @@
#include "Resource.h" #include "Resource.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS { typedef struct {
typedef struct {
/* 0x00 */ uintptr_t start; /* 0x00 */ uintptr_t start;
/* 0x04 */ uintptr_t end; /* 0x04 */ uintptr_t end;
/* 0x08 */ u32 count; /* 0x08 */ u32 count;
/* 0x0C */ char unk_0C[0x4]; /* 0x0C */ char unk_0C[0x4];
/* 0x10 */ s16 state[16]; // only exists if count != 0. 8-byte aligned /* 0x10 */ s16 state[16]; // only exists if count != 0. 8-byte aligned
} AdpcmLoop; // size = 0x30 (or 0x10) } AdpcmLoop; // size = 0x30 (or 0x10)
typedef struct { typedef struct {
/* 0x00 */ s32 order; /* 0x00 */ s32 order;
/* 0x04 */ s32 npredictors; /* 0x04 */ s32 npredictors;
/* 0x08 */ s16* book; // size 8 * order * npredictors. 8-byte aligned /* 0x08 */ s16* book; // size 8 * order * npredictors. 8-byte aligned
} AdpcmBook; // s } AdpcmBook; // s
typedef struct { typedef struct {
union { union {
struct { struct {
/* 0x00 */ u32 codec : 4; /* 0x00 */ u32 codec : 4;
@ -37,13 +36,13 @@ namespace LUS {
/* 0x0C */ AdpcmBook* book; /* 0x0C */ AdpcmBook* book;
u32 sampleRateMagicValue; // For wav samples only... u32 sampleRateMagicValue; // For wav samples only...
s32 sampleRate; // For wav samples only... s32 sampleRate; // For wav samples only...
} Sample; // size = 0x10 } Sample; // size = 0x10
class AudioSample : public Resource<Sample> { class AudioSample : public LUS::Resource<Sample> {
public: public:
using Resource::Resource; using Resource::Resource;
AudioSample() : Resource(std::shared_ptr<ResourceInitData>()) {} AudioSample() : Resource(std::shared_ptr<LUS::ResourceInitData>()) {}
Sample* GetPointer(); Sample* GetPointer();
size_t GetPointerSize(); size_t GetPointerSize();
@ -57,5 +56,4 @@ namespace LUS {
AdpcmBook book; AdpcmBook book;
uint32_t bookDataCount; uint32_t bookDataCount;
std::vector<int16_t> bookData; std::vector<int16_t> bookData;
}; };
}; // namespace LUS

View file

@ -1,7 +1,5 @@
#include "AudioSequence.h" #include "AudioSequence.h"
namespace LUS {
Sequence* AudioSequence::GetPointer() { Sequence* AudioSequence::GetPointer() {
return &sequence; return &sequence;
} }
@ -9,4 +7,3 @@ Sequence* AudioSequence::GetPointer() {
size_t AudioSequence::GetPointerSize() { size_t AudioSequence::GetPointerSize() {
return sizeof(Sequence); return sizeof(Sequence);
} }
} // namespace LUS

View file

@ -5,8 +5,6 @@
#include "Resource.h" #include "Resource.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
typedef struct { typedef struct {
char* seqData; char* seqData;
int32_t seqDataSize; int32_t seqDataSize;
@ -17,11 +15,11 @@ typedef struct {
uint8_t fonts[16]; uint8_t fonts[16];
} Sequence; } Sequence;
class AudioSequence : public Resource<Sequence> { class AudioSequence : public LUS::Resource<Sequence> {
public: public:
using Resource::Resource; using Resource::Resource;
AudioSequence() : Resource(std::shared_ptr<ResourceInitData>()) {} AudioSequence() : Resource(std::shared_ptr<LUS::ResourceInitData>()) {}
Sequence* GetPointer(); Sequence* GetPointer();
size_t GetPointerSize(); size_t GetPointerSize();
@ -29,4 +27,3 @@ public:
Sequence sequence; Sequence sequence;
std::vector<char> sequenceData; std::vector<char> sequenceData;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "AudioSoundFont.h" #include "AudioSoundFont.h"
namespace LUS {
SoundFont* AudioSoundFont::GetPointer() { SoundFont* AudioSoundFont::GetPointer() {
return &soundFont; return &soundFont;
} }
@ -8,4 +7,3 @@ SoundFont* AudioSoundFont::GetPointer() {
size_t AudioSoundFont::GetPointerSize() { size_t AudioSoundFont::GetPointerSize() {
return sizeof(SoundFont); return sizeof(SoundFont);
} }
} // namespace LUS

View file

@ -6,8 +6,6 @@
#include "soh/resource/type/AudioSample.h" #include "soh/resource/type/AudioSample.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
typedef struct { typedef struct {
/* 0x0 */ s16 delay; /* 0x0 */ s16 delay;
/* 0x2 */ s16 arg; /* 0x2 */ s16 arg;
@ -52,11 +50,11 @@ typedef struct {
s32 fntIndex; s32 fntIndex;
} SoundFont; // size = 0x14 } SoundFont; // size = 0x14
class AudioSoundFont : public Resource<SoundFont> { class AudioSoundFont : public LUS::Resource<SoundFont> {
public: public:
using Resource::Resource; using Resource::Resource;
AudioSoundFont() : Resource(std::shared_ptr<ResourceInitData>()) {} AudioSoundFont() : Resource(std::shared_ptr<LUS::ResourceInitData>()) {}
SoundFont* GetPointer(); SoundFont* GetPointer();
size_t GetPointerSize(); size_t GetPointerSize();
@ -81,4 +79,3 @@ public:
SoundFont soundFont; SoundFont soundFont;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "Background.h" #include "Background.h"
namespace LUS {
uint8_t* Background::GetPointer() { uint8_t* Background::GetPointer() {
return Data.data(); return Data.data();
} }
@ -8,4 +7,3 @@ uint8_t* Background::GetPointer() {
size_t Background::GetPointerSize() { size_t Background::GetPointerSize() {
return Data.size() * sizeof(uint8_t); return Data.size() * sizeof(uint8_t);
} }
} // namespace LUS

View file

@ -2,16 +2,14 @@
#include "resource/Resource.h" #include "resource/Resource.h"
namespace LUS { class Background : public LUS::Resource<uint8_t> {
class Background : public Resource<uint8_t> {
public: public:
using Resource::Resource; using Resource::Resource;
Background() : Resource(std::shared_ptr<ResourceInitData>()) {} Background() : Resource(std::shared_ptr<LUS::ResourceInitData>()) {}
uint8_t* GetPointer(); uint8_t* GetPointer();
size_t GetPointerSize(); size_t GetPointerSize();
std::vector<uint8_t> Data; std::vector<uint8_t> Data;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "CollisionHeader.h" #include "CollisionHeader.h"
namespace LUS {
CollisionHeaderData* CollisionHeader::GetPointer() { CollisionHeaderData* CollisionHeader::GetPointer() {
return &collisionHeaderData; return &collisionHeaderData;
} }
@ -8,4 +7,3 @@ CollisionHeaderData* CollisionHeader::GetPointer() {
size_t CollisionHeader::GetPointerSize() { size_t CollisionHeader::GetPointerSize() {
return sizeof(collisionHeaderData); return sizeof(collisionHeaderData);
} }
} // namespace LUS

View file

@ -6,8 +6,6 @@
#include <libultraship/libultra.h> #include <libultraship/libultra.h>
#include "z64math.h" #include "z64math.h"
namespace LUS {
typedef struct { typedef struct {
/* 0x00 */ u16 type; /* 0x00 */ u16 type;
union { union {
@ -67,11 +65,11 @@ typedef struct {
size_t cameraDataListLen; // OTRTODO: Added to allow for bounds checking the cameraDataList. size_t cameraDataListLen; // OTRTODO: Added to allow for bounds checking the cameraDataList.
} CollisionHeaderData; // original name: BGDataInfo } CollisionHeaderData; // original name: BGDataInfo
class CollisionHeader : public Resource<CollisionHeaderData> { class CollisionHeader : public LUS::Resource<CollisionHeaderData> {
public: public:
using Resource::Resource; using Resource::Resource;
CollisionHeader() : Resource(std::shared_ptr<ResourceInitData>()) {} CollisionHeader() : Resource(std::shared_ptr<LUS::ResourceInitData>()) {}
CollisionHeaderData* GetPointer(); CollisionHeaderData* GetPointer();
size_t GetPointerSize(); size_t GetPointerSize();
@ -95,4 +93,3 @@ public:
std::vector<WaterBox> waterBoxes; std::vector<WaterBox> waterBoxes;
}; };
}; // namespace LUS

View file

@ -1,7 +1,6 @@
#include "Cutscene.h" #include "Cutscene.h"
#include <libultraship/libultra/gbi.h> #include <libultraship/libultra/gbi.h>
namespace LUS {
uint32_t* Cutscene::GetPointer() { uint32_t* Cutscene::GetPointer() {
return commands.data(); return commands.data();
} }
@ -9,4 +8,3 @@ uint32_t* Cutscene::GetPointer() {
size_t Cutscene::GetPointerSize() { size_t Cutscene::GetPointerSize() {
return commands.size() * sizeof(uint32_t); return commands.size() * sizeof(uint32_t);
} }
} // namespace LUS

View file

@ -7,8 +7,6 @@
#include "Vec3f.h" #include "Vec3f.h"
#include "Color3b.h" #include "Color3b.h"
namespace LUS {
enum class CutsceneCommands { enum class CutsceneCommands {
Cmd00 = 0x0000, Cmd00 = 0x0000,
SetCameraPos = 0x0001, SetCameraPos = 0x0001,
@ -44,11 +42,11 @@ enum class CutsceneCommands {
Error = 0xFEAF, Error = 0xFEAF,
}; };
class Cutscene : public Resource<uint32_t> { class Cutscene : public LUS::Resource<uint32_t> {
public: public:
using Resource::Resource; using Resource::Resource;
Cutscene() : Resource(std::shared_ptr<ResourceInitData>()) {} Cutscene() : Resource(std::shared_ptr<LUS::ResourceInitData>()) {}
uint32_t* GetPointer(); uint32_t* GetPointer();
size_t GetPointerSize(); size_t GetPointerSize();
@ -57,15 +55,3 @@ class Cutscene : public Resource<uint32_t> {
uint32_t endFrame; uint32_t endFrame;
std::vector<uint32_t> commands; std::vector<uint32_t> commands;
}; };
} // namespace LUS
/////////////
// class CutsceneCommand {
// public:
// uint32_t commandID;
// uint32_t commandIndex;
// CutsceneCommand(){};
// };

View file

@ -1,6 +1,5 @@
#include "Path.h" #include "Path.h"
namespace LUS {
PathData* Path::GetPointer() { PathData* Path::GetPointer() {
return pathData.data(); return pathData.data();
} }
@ -8,4 +7,3 @@ PathData* Path::GetPointer() {
size_t Path::GetPointerSize() { size_t Path::GetPointerSize() {
return pathData.size() * sizeof(PathData); return pathData.size() * sizeof(PathData);
} }
} // namespace LUS

View file

@ -6,18 +6,16 @@
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
#include "z64math.h" #include "z64math.h"
namespace LUS {
typedef struct { typedef struct {
/* 0x00 */ u8 count; // number of points in the path /* 0x00 */ u8 count; // number of points in the path
/* 0x04 */ Vec3s* points; // Segment Address to the array of points /* 0x04 */ Vec3s* points; // Segment Address to the array of points
} PathData; // size = 0x8 } PathData; // size = 0x8
class Path : public Resource<PathData> { class Path : public LUS::Resource<PathData> {
public: public:
using Resource::Resource; using Resource::Resource;
Path() : Resource(std::shared_ptr<ResourceInitData>()) {} Path() : Resource(std::shared_ptr<LUS::ResourceInitData>()) {}
PathData* GetPointer(); PathData* GetPointer();
size_t GetPointerSize(); size_t GetPointerSize();
@ -26,4 +24,3 @@ public:
std::vector<PathData> pathData; std::vector<PathData> pathData;
std::vector<std::vector<Vec3s>> paths; std::vector<std::vector<Vec3s>> paths;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "Scene.h" #include "Scene.h"
namespace LUS {
void* Scene::GetPointer() { void* Scene::GetPointer() {
// Scene is a special type that requries C++ processing. As such, we return nothing. // Scene is a special type that requries C++ processing. As such, we return nothing.
return nullptr; return nullptr;
@ -9,4 +8,3 @@ void* Scene::GetPointer() {
size_t Scene::GetPointerSize() { size_t Scene::GetPointerSize() {
return 0; return 0;
} }
} // namespace LUS

View file

@ -7,17 +7,14 @@
#include "scenecommand/SceneCommand.h" #include "scenecommand/SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS { class Scene : public LUS::Resource<void> {
class Scene : public Resource<void> {
public: public:
using Resource::Resource; using Resource::Resource;
Scene() : Resource(std::shared_ptr<ResourceInitData>()) {} Scene() : Resource(std::shared_ptr<LUS::ResourceInitData>()) {}
void* GetPointer(); void* GetPointer();
size_t GetPointerSize(); size_t GetPointerSize();
std::vector<std::shared_ptr<ISceneCommand>> commands; std::vector<std::shared_ptr<ISceneCommand>> commands;
}; };
}; // namespace LUS

View file

@ -3,7 +3,6 @@
#include "soh/OTRGlobals.h" #include "soh/OTRGlobals.h"
#include "libultraship/libultraship.h" #include "libultraship/libultraship.h"
namespace LUS {
SkeletonData* Skeleton::GetPointer() { SkeletonData* Skeleton::GetPointer() {
return &skeletonData; return &skeletonData;
} }
@ -79,4 +78,3 @@ void SkeletonPatcher::UpdateSkeletons() {
} }
} }
} }
} // namespace LUS

View file

@ -5,8 +5,6 @@
#include "SkeletonLimb.h" #include "SkeletonLimb.h"
#include <z64animation.h> #include <z64animation.h>
namespace LUS {
enum class SkeletonType { enum class SkeletonType {
Normal, Normal,
Flex, Flex,
@ -50,11 +48,11 @@ union SkeletonData {
SkelCurveLimbList skelCurveLimbList; SkelCurveLimbList skelCurveLimbList;
}; };
class Skeleton : public Resource<SkeletonData> { class Skeleton : public LUS::Resource<SkeletonData> {
public: public:
using Resource::Resource; using Resource::Resource;
Skeleton() : Resource(std::shared_ptr<ResourceInitData>()) {} Skeleton() : Resource(std::shared_ptr<LUS::ResourceInitData>()) {}
SkeletonData* GetPointer(); SkeletonData* GetPointer();
size_t GetPointerSize(); size_t GetPointerSize();
@ -89,6 +87,3 @@ class SkeletonPatcher {
static std::vector<SkeletonPatchInfo> skeletons; static std::vector<SkeletonPatchInfo> skeletons;
}; };
} // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SkeletonLimb.h" #include "SkeletonLimb.h"
namespace LUS {
SkeletonLimbData* SkeletonLimb::GetPointer() { SkeletonLimbData* SkeletonLimb::GetPointer() {
return &limbData; return &limbData;
} }
@ -21,4 +20,3 @@ size_t SkeletonLimb::GetPointerSize() {
return 0; return 0;
} }
} }
} // namespace LUS

View file

@ -4,7 +4,6 @@
#include "libultraship/libultra.h" #include "libultraship/libultra.h"
#include "z64math.h" #include "z64math.h"
namespace LUS {
enum class LimbType { enum class LimbType {
Invalid, Invalid,
Standard, Standard,
@ -97,11 +96,11 @@ union SkeletonLimbData {
SkinLimb skinLimb; SkinLimb skinLimb;
}; };
class SkeletonLimb : public Resource<SkeletonLimbData> { class SkeletonLimb : public LUS::Resource<SkeletonLimbData> {
public: public:
using Resource::Resource; using Resource::Resource;
SkeletonLimb() : Resource(std::shared_ptr<ResourceInitData>()) {} SkeletonLimb() : Resource(std::shared_ptr<LUS::ResourceInitData>()) {}
SkeletonLimbData* GetPointer(); SkeletonLimbData* GetPointer();
size_t GetPointerSize(); size_t GetPointerSize();
@ -131,4 +130,3 @@ public:
std::vector<std::vector<SkinVertex>> skinLimbModifVertexArrays; std::vector<std::vector<SkinVertex>> skinLimbModifVertexArrays;
std::vector<std::vector<SkinTransformation>> skinLimbModifTransformationArrays; std::vector<std::vector<SkinTransformation>> skinLimbModifTransformationArrays;
}; };
} // namespace LUS

View file

@ -1,6 +1,5 @@
#include "Text.h" #include "Text.h"
namespace LUS {
MessageEntry* Text::GetPointer() { MessageEntry* Text::GetPointer() {
return messages.data(); return messages.data();
} }
@ -8,4 +7,3 @@ MessageEntry* Text::GetPointer() {
size_t Text::GetPointerSize() { size_t Text::GetPointerSize() {
return messages.size() * sizeof(MessageEntry); return messages.size() * sizeof(MessageEntry);
} }
} // namespace LUS

View file

@ -5,7 +5,6 @@
#include "Resource.h" #include "Resource.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
// TODO: we've moved away from using classes for this stuff // TODO: we've moved away from using classes for this stuff
class MessageEntry class MessageEntry
{ {
@ -16,15 +15,14 @@ public:
std::string msg; std::string msg;
}; };
class Text : public Resource<MessageEntry> { class Text : public LUS::Resource<MessageEntry> {
public: public:
using Resource::Resource; using Resource::Resource;
Text() : Resource(std::shared_ptr<ResourceInitData>()) {} Text() : Resource(std::shared_ptr<LUS::ResourceInitData>()) {}
MessageEntry* GetPointer(); MessageEntry* GetPointer();
size_t GetPointerSize(); size_t GetPointerSize();
std::vector<MessageEntry> messages; std::vector<MessageEntry> messages;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "EndMarker.h" #include "EndMarker.h"
namespace LUS {
Marker* EndMarker::GetPointer() { Marker* EndMarker::GetPointer() {
return &endMarker; return &endMarker;
} }
@ -8,4 +7,3 @@ Marker* EndMarker::GetPointer() {
size_t EndMarker::GetPointerSize() { size_t EndMarker::GetPointerSize() {
return sizeof(Marker); return sizeof(Marker);
} }
} // namespace LUS

View file

@ -7,7 +7,6 @@
#include "SceneCommand.h" #include "SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
typedef struct { typedef struct {
} Marker; } Marker;
@ -21,4 +20,3 @@ class EndMarker : public SceneCommand<Marker> {
Marker endMarker; Marker endMarker;
}; };
}; // namespace LUS

View file

@ -2,10 +2,8 @@
#include <cstdint> #include <cstdint>
namespace LUS { typedef struct {
typedef struct {
/* 0x00 */ uintptr_t vromStart; /* 0x00 */ uintptr_t vromStart;
/* 0x04 */ uintptr_t vromEnd; /* 0x04 */ uintptr_t vromEnd;
char* fileName; char* fileName;
} RomFile; // size = 0x8 } RomFile; // size = 0x8
}

View file

@ -6,8 +6,6 @@
#include "Resource.h" #include "Resource.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
enum class SceneCommandID : uint8_t { enum class SceneCommandID : uint8_t {
SetStartPositionList = 0x00, SetStartPositionList = 0x00,
SetActorList = 0x01, SetActorList = 0x01,
@ -47,10 +45,10 @@ enum class SceneCommandID : uint8_t {
Error = 0xFF Error = 0xFF
}; };
class ISceneCommand : public IResource { class ISceneCommand : public LUS::IResource {
public: public:
using IResource::IResource; using IResource::IResource;
ISceneCommand() : IResource(std::shared_ptr<ResourceInitData>()) {} ISceneCommand() : IResource(std::shared_ptr<LUS::ResourceInitData>()) {}
SceneCommandID cmdId; SceneCommandID cmdId;
}; };
@ -62,5 +60,3 @@ template <class T> class SceneCommand : public ISceneCommand {
return static_cast<void*>(GetPointer()); return static_cast<void*>(GetPointer());
} }
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetActorList.h" #include "SetActorList.h"
namespace LUS {
ActorEntry* SetActorList::GetPointer() { ActorEntry* SetActorList::GetPointer() {
return actorList.data(); return actorList.data();
} }
@ -8,4 +7,3 @@ ActorEntry* SetActorList::GetPointer() {
size_t SetActorList::GetPointerSize() { size_t SetActorList::GetPointerSize() {
return actorList.size() * sizeof(ActorEntry); return actorList.size() * sizeof(ActorEntry);
} }
} // namespace LUS

View file

@ -9,7 +9,6 @@
// #include <libultraship/libultra/types.h> // #include <libultraship/libultra/types.h>
#include "z64math.h" #include "z64math.h"
namespace LUS {
typedef struct { typedef struct {
/* 0x00 */ s16 id; /* 0x00 */ s16 id;
/* 0x02 */ Vec3s pos; /* 0x02 */ Vec3s pos;
@ -27,4 +26,3 @@ class SetActorList : public SceneCommand<ActorEntry> {
uint32_t numActors; uint32_t numActors;
std::vector<ActorEntry> actorList; std::vector<ActorEntry> actorList;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetAlternateHeaders.h" #include "SetAlternateHeaders.h"
namespace LUS {
void* SetAlternateHeaders::GetPointer() { void* SetAlternateHeaders::GetPointer() {
// Like Scene, SetAlternateHeader is a special type that is only acted upon in C++. // Like Scene, SetAlternateHeader is a special type that is only acted upon in C++.
return nullptr; return nullptr;
@ -9,4 +8,3 @@ void* SetAlternateHeaders::GetPointer() {
size_t SetAlternateHeaders::GetPointerSize() { size_t SetAlternateHeaders::GetPointerSize() {
return 0; return 0;
} }
} // namespace LUS

View file

@ -10,9 +10,6 @@
#include "RomFile.h" #include "RomFile.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
class SetAlternateHeaders : public SceneCommand<void> { class SetAlternateHeaders : public SceneCommand<void> {
public: public:
using SceneCommand::SceneCommand; using SceneCommand::SceneCommand;
@ -23,4 +20,3 @@ class SetAlternateHeaders : public SceneCommand<void> {
uint32_t numHeaders; uint32_t numHeaders;
std::vector<std::shared_ptr<Scene>> headers; std::vector<std::shared_ptr<Scene>> headers;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetCameraSettings.h" #include "SetCameraSettings.h"
namespace LUS {
CameraSettings* SetCameraSettings::GetPointer() { CameraSettings* SetCameraSettings::GetPointer() {
return &settings; return &settings;
} }
@ -8,4 +7,3 @@ CameraSettings* SetCameraSettings::GetPointer() {
size_t SetCameraSettings::GetPointerSize() { size_t SetCameraSettings::GetPointerSize() {
return sizeof(CameraSettings); return sizeof(CameraSettings);
} }
} // namespace LUS

View file

@ -7,7 +7,6 @@
#include "SceneCommand.h" #include "SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
typedef struct { typedef struct {
int8_t cameraMovement; int8_t cameraMovement;
int32_t worldMapArea; int32_t worldMapArea;
@ -22,4 +21,3 @@ class SetCameraSettings : public SceneCommand<CameraSettings> {
CameraSettings settings; CameraSettings settings;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetCollisionHeader.h" #include "SetCollisionHeader.h"
namespace LUS {
CollisionHeaderData* SetCollisionHeader::GetPointer() { CollisionHeaderData* SetCollisionHeader::GetPointer() {
if (collisionHeader == nullptr) { if (collisionHeader == nullptr) {
return nullptr; return nullptr;
@ -14,4 +13,3 @@ size_t SetCollisionHeader::GetPointerSize() {
} }
return collisionHeader->GetPointerSize(); return collisionHeader->GetPointerSize();
} }
} // namespace LUS

View file

@ -9,7 +9,6 @@
#include "soh/resource/type/CollisionHeader.h" #include "soh/resource/type/CollisionHeader.h"
// #include <libultraship/libultra/types.h> // #include <libultraship/libultra/types.h>
namespace LUS {
class SetCollisionHeader : public SceneCommand<CollisionHeaderData> { class SetCollisionHeader : public SceneCommand<CollisionHeaderData> {
public: public:
using SceneCommand::SceneCommand; using SceneCommand::SceneCommand;
@ -21,4 +20,3 @@ class SetCollisionHeader : public SceneCommand<CollisionHeaderData> {
std::shared_ptr<CollisionHeader> collisionHeader; std::shared_ptr<CollisionHeader> collisionHeader;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetCsCamera.h" #include "SetCsCamera.h"
namespace LUS {
CsCamera* SetCsCamera::GetPointer() { CsCamera* SetCsCamera::GetPointer() {
return &csCamera; return &csCamera;
} }
@ -8,4 +7,3 @@ CsCamera* SetCsCamera::GetPointer() {
size_t SetCsCamera::GetPointerSize() { size_t SetCsCamera::GetPointerSize() {
return sizeof(CsCamera); return sizeof(CsCamera);
} }
} // namespace LUS

View file

@ -7,7 +7,6 @@
#include "SceneCommand.h" #include "SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
typedef struct { typedef struct {
} CsCamera; } CsCamera;
@ -21,4 +20,3 @@ class SetCsCamera : public SceneCommand<CsCamera> {
CsCamera csCamera; CsCamera csCamera;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetCutscenes.h" #include "SetCutscenes.h"
namespace LUS {
uint32_t* SetCutscenes::GetPointer() { uint32_t* SetCutscenes::GetPointer() {
if (cutscene == nullptr) { if (cutscene == nullptr) {
return nullptr; return nullptr;
@ -14,4 +13,3 @@ size_t SetCutscenes::GetPointerSize() {
} }
return cutscene->GetPointerSize(); return cutscene->GetPointerSize();
} }
} // namespace LUS

View file

@ -9,7 +9,6 @@
#include "soh/resource/type/Cutscene.h" #include "soh/resource/type/Cutscene.h"
// #include <libultraship/libultra.h> // #include <libultraship/libultra.h>
namespace LUS {
class SetCutscenes : public SceneCommand<uint32_t> { class SetCutscenes : public SceneCommand<uint32_t> {
public: public:
using SceneCommand::SceneCommand; using SceneCommand::SceneCommand;
@ -20,4 +19,3 @@ class SetCutscenes : public SceneCommand<uint32_t> {
std::string fileName; std::string fileName;
std::shared_ptr<Cutscene> cutscene; std::shared_ptr<Cutscene> cutscene;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetEchoSettings.h" #include "SetEchoSettings.h"
namespace LUS {
EchoSettings* SetEchoSettings::GetPointer() { EchoSettings* SetEchoSettings::GetPointer() {
return &settings; return &settings;
} }
@ -8,4 +7,3 @@ EchoSettings* SetEchoSettings::GetPointer() {
size_t SetEchoSettings::GetPointerSize() { size_t SetEchoSettings::GetPointerSize() {
return sizeof(EchoSettings); return sizeof(EchoSettings);
} }
} // namespace LUS

View file

@ -7,7 +7,6 @@
#include "SceneCommand.h" #include "SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
typedef struct { typedef struct {
int8_t echo; int8_t echo;
} EchoSettings; } EchoSettings;
@ -21,4 +20,3 @@ class SetEchoSettings : public SceneCommand<EchoSettings> {
EchoSettings settings; EchoSettings settings;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetEntranceList.h" #include "SetEntranceList.h"
namespace LUS {
EntranceEntry* SetEntranceList::GetPointer() { EntranceEntry* SetEntranceList::GetPointer() {
return entrances.data(); return entrances.data();
} }
@ -8,4 +7,3 @@ EntranceEntry* SetEntranceList::GetPointer() {
size_t SetEntranceList::GetPointerSize() { size_t SetEntranceList::GetPointerSize() {
return entrances.size() * sizeof(EntranceEntry); return entrances.size() * sizeof(EntranceEntry);
} }
} // namespace LUS

View file

@ -8,7 +8,6 @@
#include "SceneCommand.h" #include "SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
typedef struct { typedef struct {
/* 0x00 */ u8 spawn; /* 0x00 */ u8 spawn;
/* 0x01 */ u8 room; /* 0x01 */ u8 room;
@ -25,4 +24,3 @@ class SetEntranceList : public SceneCommand<EntranceEntry> {
std::vector<EntranceEntry> entrances; std::vector<EntranceEntry> entrances;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetExitList.h" #include "SetExitList.h"
namespace LUS {
uint16_t* SetExitList::GetPointer() { uint16_t* SetExitList::GetPointer() {
return exits.data(); return exits.data();
} }
@ -8,4 +7,3 @@ uint16_t* SetExitList::GetPointer() {
size_t SetExitList::GetPointerSize() { size_t SetExitList::GetPointerSize() {
return exits.size() * sizeof(int16_t); return exits.size() * sizeof(int16_t);
} }
} // namespace LUS

View file

@ -7,7 +7,6 @@
#include "SceneCommand.h" #include "SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
class SetExitList : public SceneCommand<uint16_t> { class SetExitList : public SceneCommand<uint16_t> {
public: public:
using SceneCommand::SceneCommand; using SceneCommand::SceneCommand;
@ -19,4 +18,3 @@ class SetExitList : public SceneCommand<uint16_t> {
std::vector<uint16_t> exits; std::vector<uint16_t> exits;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetLightList.h" #include "SetLightList.h"
namespace LUS {
LightInfo* SetLightList::GetPointer() { LightInfo* SetLightList::GetPointer() {
return lightList.data(); return lightList.data();
} }
@ -8,4 +7,3 @@ LightInfo* SetLightList::GetPointer() {
size_t SetLightList::GetPointerSize() { size_t SetLightList::GetPointerSize() {
return lightList.size() * sizeof(LightInfo); return lightList.size() * sizeof(LightInfo);
} }
} // namespace LUS

View file

@ -8,7 +8,6 @@
#include "SceneCommand.h" #include "SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
typedef struct { typedef struct {
/* 0x0 */ s16 x; /* 0x0 */ s16 x;
/* 0x2 */ s16 y; /* 0x2 */ s16 y;
@ -45,4 +44,3 @@ class SetLightList : public SceneCommand<LightInfo> {
uint32_t numLights; uint32_t numLights;
std::vector<LightInfo> lightList; std::vector<LightInfo> lightList;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetLightingSettings.h" #include "SetLightingSettings.h"
namespace LUS {
EnvLightSettings* SetLightingSettings::GetPointer() { EnvLightSettings* SetLightingSettings::GetPointer() {
return settings.data(); return settings.data();
} }
@ -8,4 +7,3 @@ EnvLightSettings* SetLightingSettings::GetPointer() {
size_t SetLightingSettings::GetPointerSize() { size_t SetLightingSettings::GetPointerSize() {
return settings.size() * sizeof(EnvLightSettings); return settings.size() * sizeof(EnvLightSettings);
} }
} // namespace LUS

View file

@ -7,7 +7,6 @@
#include "SceneCommand.h" #include "SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
typedef struct { typedef struct {
/* 0x00 */ u8 ambientColor[3]; /* 0x00 */ u8 ambientColor[3];
/* 0x03 */ s8 light1Dir[3]; /* 0x03 */ s8 light1Dir[3];
@ -28,4 +27,3 @@ class SetLightingSettings : public SceneCommand<EnvLightSettings> {
std::vector<EnvLightSettings> settings; std::vector<EnvLightSettings> settings;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetMesh.h" #include "SetMesh.h"
namespace LUS {
MeshHeader* SetMesh::GetPointer() { MeshHeader* SetMesh::GetPointer() {
return &meshHeader; return &meshHeader;
} }
@ -8,4 +7,3 @@ MeshHeader* SetMesh::GetPointer() {
size_t SetMesh::GetPointerSize() { size_t SetMesh::GetPointerSize() {
return sizeof(MeshHeader); return sizeof(MeshHeader);
} }
} // namespace LUS

View file

@ -8,7 +8,6 @@
#include "libultraship/libultra.h" #include "libultraship/libultra.h"
#include "z64math.h" #include "z64math.h"
namespace LUS {
typedef struct { typedef struct {
/* 0x00 */ u8 type; /* 0x00 */ u8 type;
} PolygonBase; } PolygonBase;
@ -100,4 +99,3 @@ class SetMesh : public SceneCommand<MeshHeader> {
std::vector<BgImage> images; std::vector<BgImage> images;
MeshHeader meshHeader; MeshHeader meshHeader;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetObjectList.h" #include "SetObjectList.h"
namespace LUS {
int16_t* SetObjectList::GetPointer() { int16_t* SetObjectList::GetPointer() {
return objects.data(); return objects.data();
} }
@ -8,4 +7,3 @@ int16_t* SetObjectList::GetPointer() {
size_t SetObjectList::GetPointerSize() { size_t SetObjectList::GetPointerSize() {
return objects.size() * sizeof(int16_t); return objects.size() * sizeof(int16_t);
} }
} // namespace LUS

View file

@ -8,7 +8,6 @@
#include "SceneCommand.h" #include "SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
class SetObjectList : public SceneCommand<int16_t> { class SetObjectList : public SceneCommand<int16_t> {
public: public:
using SceneCommand::SceneCommand; using SceneCommand::SceneCommand;
@ -19,4 +18,3 @@ class SetObjectList : public SceneCommand<int16_t> {
uint32_t numObjects; uint32_t numObjects;
std::vector<int16_t> objects; std::vector<int16_t> objects;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetPathways.h" #include "SetPathways.h"
namespace LUS {
PathData** SetPathways::GetPointer() { PathData** SetPathways::GetPointer() {
return paths.data(); return paths.data();
} }
@ -8,4 +7,3 @@ PathData** SetPathways::GetPointer() {
size_t SetPathways::GetPointerSize() { size_t SetPathways::GetPointerSize() {
return paths.size() * sizeof(PathData*); return paths.size() * sizeof(PathData*);
} }
} // namespace LUS

View file

@ -8,8 +8,6 @@
// #include <libultraship/libultra/types.h> // #include <libultraship/libultra/types.h>
#include "soh/resource/type/Path.h" #include "soh/resource/type/Path.h"
namespace LUS {
class SetPathways : public SceneCommand<PathData*> { class SetPathways : public SceneCommand<PathData*> {
public: public:
using SceneCommand::SceneCommand; using SceneCommand::SceneCommand;
@ -20,4 +18,3 @@ class SetPathways : public SceneCommand<PathData*> {
uint32_t numPaths; uint32_t numPaths;
std::vector<PathData*> paths; std::vector<PathData*> paths;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetRoomBehavior.h" #include "SetRoomBehavior.h"
namespace LUS {
RoomBehavior* SetRoomBehavior::GetPointer() { RoomBehavior* SetRoomBehavior::GetPointer() {
return &roomBehavior; return &roomBehavior;
} }
@ -8,4 +7,3 @@ RoomBehavior* SetRoomBehavior::GetPointer() {
size_t SetRoomBehavior::GetPointerSize() { size_t SetRoomBehavior::GetPointerSize() {
return sizeof(RoomBehavior); return sizeof(RoomBehavior);
} }
} // namespace LUS

View file

@ -7,7 +7,6 @@
#include "SceneCommand.h" #include "SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
typedef struct { typedef struct {
int8_t gameplayFlags; int8_t gameplayFlags;
int32_t gameplayFlags2; int32_t gameplayFlags2;
@ -22,4 +21,3 @@ class SetRoomBehavior : public SceneCommand<RoomBehavior> {
RoomBehavior roomBehavior; RoomBehavior roomBehavior;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetRoomList.h" #include "SetRoomList.h"
namespace LUS {
RomFile* SetRoomList::GetPointer() { RomFile* SetRoomList::GetPointer() {
return rooms.data(); return rooms.data();
} }
@ -8,4 +7,3 @@ RomFile* SetRoomList::GetPointer() {
size_t SetRoomList::GetPointerSize() { size_t SetRoomList::GetPointerSize() {
return rooms.size() * sizeof(RomFile); return rooms.size() * sizeof(RomFile);
} }
} // namespace LUS

View file

@ -9,14 +9,6 @@
#include "RomFile.h" #include "RomFile.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
// typedef struct {
// /* 0x00 */ uintptr_t vromStart;
// /* 0x04 */ uintptr_t vromEnd;
// char* fileName;
// } RomFile; // size = 0x8
class SetRoomList : public SceneCommand<RomFile> { class SetRoomList : public SceneCommand<RomFile> {
public: public:
using SceneCommand::SceneCommand; using SceneCommand::SceneCommand;
@ -29,4 +21,3 @@ class SetRoomList : public SceneCommand<RomFile> {
std::vector<std::string> fileNames; std::vector<std::string> fileNames;
std::vector<RomFile> rooms; std::vector<RomFile> rooms;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetSkyboxModifier.h" #include "SetSkyboxModifier.h"
namespace LUS {
SkyboxModifier* SetSkyboxModifier::GetPointer() { SkyboxModifier* SetSkyboxModifier::GetPointer() {
return &modifier; return &modifier;
} }
@ -8,4 +7,3 @@ SkyboxModifier* SetSkyboxModifier::GetPointer() {
size_t SetSkyboxModifier::GetPointerSize() { size_t SetSkyboxModifier::GetPointerSize() {
return sizeof(SkyboxModifier); return sizeof(SkyboxModifier);
} }
} // namespace LUS

View file

@ -7,7 +7,6 @@
#include "SceneCommand.h" #include "SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
typedef struct { typedef struct {
uint8_t skyboxDisabled; uint8_t skyboxDisabled;
uint8_t sunMoonDisabled; uint8_t sunMoonDisabled;
@ -22,4 +21,3 @@ class SetSkyboxModifier : public SceneCommand<SkyboxModifier> {
SkyboxModifier modifier; SkyboxModifier modifier;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetSkyboxSettings.h" #include "SetSkyboxSettings.h"
namespace LUS {
SkyboxSettings* SetSkyboxSettings::GetPointer() { SkyboxSettings* SetSkyboxSettings::GetPointer() {
return &settings; return &settings;
} }
@ -8,4 +7,3 @@ SkyboxSettings* SetSkyboxSettings::GetPointer() {
size_t SetSkyboxSettings::GetPointerSize() { size_t SetSkyboxSettings::GetPointerSize() {
return sizeof(SetSkyboxSettings); return sizeof(SetSkyboxSettings);
} }
} // namespace LUS

View file

@ -7,7 +7,6 @@
#include "SceneCommand.h" #include "SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
typedef struct { typedef struct {
uint8_t unk; uint8_t unk;
uint8_t skyboxId; uint8_t skyboxId;
@ -24,4 +23,3 @@ class SetSkyboxSettings : public SceneCommand<SkyboxSettings> {
SkyboxSettings settings; SkyboxSettings settings;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetSoundSettings.h" #include "SetSoundSettings.h"
namespace LUS {
SoundSettings* SetSoundSettings::GetPointer() { SoundSettings* SetSoundSettings::GetPointer() {
return &settings; return &settings;
} }
@ -8,4 +7,3 @@ SoundSettings* SetSoundSettings::GetPointer() {
size_t SetSoundSettings::GetPointerSize() { size_t SetSoundSettings::GetPointerSize() {
return sizeof(SoundSettings); return sizeof(SoundSettings);
} }
} // namespace LUS

View file

@ -7,7 +7,6 @@
#include "SceneCommand.h" #include "SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
typedef struct { typedef struct {
uint8_t seqId; uint8_t seqId;
uint8_t natureAmbienceId; uint8_t natureAmbienceId;
@ -23,4 +22,3 @@ class SetSoundSettings : public SceneCommand<SoundSettings> {
SoundSettings settings; SoundSettings settings;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetSpecialObjects.h" #include "SetSpecialObjects.h"
namespace LUS {
SpecialObjects* SetSpecialObjects::GetPointer() { SpecialObjects* SetSpecialObjects::GetPointer() {
return &specialObjects; return &specialObjects;
} }
@ -8,4 +7,3 @@ SpecialObjects* SetSpecialObjects::GetPointer() {
size_t SetSpecialObjects::GetPointerSize() { size_t SetSpecialObjects::GetPointerSize() {
return sizeof(SpecialObjects); return sizeof(SpecialObjects);
} }
} // namespace LUS

View file

@ -7,7 +7,6 @@
#include "SceneCommand.h" #include "SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
typedef struct { typedef struct {
int8_t elfMessage; int8_t elfMessage;
int16_t globalObject; int16_t globalObject;
@ -22,4 +21,3 @@ class SetSpecialObjects : public SceneCommand<SpecialObjects> {
SpecialObjects specialObjects; SpecialObjects specialObjects;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetStartPositionList.h" #include "SetStartPositionList.h"
namespace LUS {
ActorEntry* SetStartPositionList::GetPointer() { ActorEntry* SetStartPositionList::GetPointer() {
return startPositions.data(); return startPositions.data();
} }
@ -8,4 +7,3 @@ ActorEntry* SetStartPositionList::GetPointer() {
size_t SetStartPositionList::GetPointerSize() { size_t SetStartPositionList::GetPointerSize() {
return startPositions.size() * sizeof(ActorEntry); return startPositions.size() * sizeof(ActorEntry);
} }
} // namespace LUS

View file

@ -9,14 +9,6 @@
#include "soh/resource/type/scenecommand/SetActorList.h" #include "soh/resource/type/scenecommand/SetActorList.h"
// #include <libultraship/libultra/types.h> // #include <libultraship/libultra/types.h>
namespace LUS {
// typedef struct {
// /* 0x00 */ s16 id;
// /* 0x02 */ Vec3s pos;
// /* 0x08 */ Vec3s rot;
// /* 0x0E */ s16 params;
// } ActorEntry; // size = 0x10
class SetStartPositionList : public SceneCommand<ActorEntry> { class SetStartPositionList : public SceneCommand<ActorEntry> {
public: public:
using SceneCommand::SceneCommand; using SceneCommand::SceneCommand;
@ -27,4 +19,3 @@ class SetStartPositionList : public SceneCommand<ActorEntry> {
uint32_t numStartPositions; uint32_t numStartPositions;
std::vector<ActorEntry> startPositions; std::vector<ActorEntry> startPositions;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetTimeSettings.h" #include "SetTimeSettings.h"
namespace LUS {
TimeSettings* SetTimeSettings::GetPointer() { TimeSettings* SetTimeSettings::GetPointer() {
return &settings; return &settings;
} }
@ -8,4 +7,3 @@ TimeSettings* SetTimeSettings::GetPointer() {
size_t SetTimeSettings::GetPointerSize() { size_t SetTimeSettings::GetPointerSize() {
return sizeof(TimeSettings); return sizeof(TimeSettings);
} }
} // namespace LUS

View file

@ -7,7 +7,6 @@
#include "SceneCommand.h" #include "SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
typedef struct { typedef struct {
uint8_t hour; uint8_t hour;
uint8_t minute; uint8_t minute;
@ -23,4 +22,3 @@ class SetTimeSettings : public SceneCommand<TimeSettings> {
TimeSettings settings; TimeSettings settings;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetTransitionActorList.h" #include "SetTransitionActorList.h"
namespace LUS {
TransitionActorEntry* SetTransitionActorList::GetPointer() { TransitionActorEntry* SetTransitionActorList::GetPointer() {
return transitionActorList.data(); return transitionActorList.data();
} }
@ -8,4 +7,3 @@ TransitionActorEntry* SetTransitionActorList::GetPointer() {
size_t SetTransitionActorList::GetPointerSize() { size_t SetTransitionActorList::GetPointerSize() {
return transitionActorList.size() * sizeof(TransitionActorEntry); return transitionActorList.size() * sizeof(TransitionActorEntry);
} }
} // namespace LUS

View file

@ -9,7 +9,6 @@
// #include <libultraship/libultra/types.h> // #include <libultraship/libultra/types.h>
#include "z64math.h" #include "z64math.h"
namespace LUS {
typedef struct { typedef struct {
struct { struct {
s8 room; // Room to switch to s8 room; // Room to switch to
@ -31,4 +30,3 @@ class SetTransitionActorList : public SceneCommand<TransitionActorEntry> {
uint32_t numTransitionActors; uint32_t numTransitionActors;
std::vector<TransitionActorEntry> transitionActorList; std::vector<TransitionActorEntry> transitionActorList;
}; };
}; // namespace LUS

View file

@ -1,6 +1,5 @@
#include "SetWindSettings.h" #include "SetWindSettings.h"
namespace LUS {
WindSettings* SetWindSettings::GetPointer() { WindSettings* SetWindSettings::GetPointer() {
return &settings; return &settings;
} }
@ -8,4 +7,3 @@ WindSettings* SetWindSettings::GetPointer() {
size_t SetWindSettings::GetPointerSize() { size_t SetWindSettings::GetPointerSize() {
return sizeof(WindSettings); return sizeof(WindSettings);
} }
} // namespace LUS

View file

@ -7,7 +7,6 @@
#include "SceneCommand.h" #include "SceneCommand.h"
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
namespace LUS {
typedef struct { typedef struct {
int8_t windWest; int8_t windWest;
int8_t windVertical; int8_t windVertical;
@ -24,4 +23,3 @@ class SetWindSettings : public SceneCommand<WindSettings> {
WindSettings settings; WindSettings settings;
}; };
}; // namespace LUS