2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 23:07:42 +00:00

Various CStateManager additions and camera stubs

This commit is contained in:
Jack Andersen
2016-04-16 11:49:47 -10:00
parent e51a657ec1
commit 042030934b
44 changed files with 778 additions and 124 deletions

38
Runtime/CSortedLists.hpp Normal file
View File

@@ -0,0 +1,38 @@
#ifndef __URDE_CSORTEDLISTS_HPP__
#define __URDE_CSORTEDLISTS_HPP__
#include "RetroTypes.hpp"
#include "zeus/CAABox.hpp"
namespace urde
{
struct SSortedList
{
TUniqueId x0_ids[1024];
void Reset() {std::fill(std::begin(x0_ids), std::end(x0_ids), -1);}
SSortedList() {Reset();}
};
class CSortedListManager
{
struct SNode
{
u32 x0_ = 0;
zeus::CAABox x4_box = zeus::CAABox::skNullBox;
u32 x1c_;
u32 x20_;
u32 x24_;
u32 x28_ = -1;
bool x2a_ = false;
};
SNode x0_nodes[1024];
SSortedList xb000_sortedLists[6];
public:
CSortedListManager();
void Reset();
};
}
#endif // __URDE_CSORTEDLISTS_HPP__