mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-12 21:26:08 +00:00
@@ -3,21 +3,38 @@
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#include "MetroidPrime/CArchitectureQueue.hpp"
|
||||
|
||||
#include "rstl/list.hpp"
|
||||
#include "rstl/rc_ptr.hpp"
|
||||
|
||||
class CIOWin;
|
||||
// TODO
|
||||
class IOWinPQNode;
|
||||
|
||||
class CIOWinManager {
|
||||
public:
|
||||
struct IOWinPQNode {
|
||||
rstl::rc_ptr<CIOWin> x0_iowin;
|
||||
int x4_prio;
|
||||
IOWinPQNode* x8_next;
|
||||
|
||||
IOWinPQNode(rstl::ncrc_ptr<CIOWin> iowin, int prio, IOWinPQNode* next);
|
||||
|
||||
rstl::ncrc_ptr<CIOWin> GetIOWin() const;
|
||||
};
|
||||
|
||||
CIOWinManager();
|
||||
~CIOWinManager();
|
||||
|
||||
void Draw() const;
|
||||
void AddIOWin(rstl::ncrc_ptr< CIOWin >, int, int);
|
||||
void RemoveIOWin(rstl::ncrc_ptr<CIOWin> chIow);
|
||||
void RemoveAllIOWins();
|
||||
void ChangeIOWinPriority(rstl::ncrc_ptr<CIOWin> toChange, int pumpPrio, int drawPrio);
|
||||
rstl::ncrc_ptr<CIOWin> FindIOWin(const char* name);
|
||||
|
||||
void PumpMessages(CArchitectureQueue& queue);
|
||||
bool DistributeOneMessage(const CArchitectureMessage& msg, CArchitectureQueue& queue);
|
||||
bool OnIOWinMessage(const CArchitectureMessage& msg);
|
||||
|
||||
inline bool IsEmpty() const { return x4_pumpRoot == nullptr && x0_drawRoot == nullptr; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user