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:
38
Runtime/CSortedLists.hpp
Normal file
38
Runtime/CSortedLists.hpp
Normal 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__
|
||||
Reference in New Issue
Block a user