mirror of
https://github.com/MonsterDruide1/OdysseyDecomp
synced 2026-04-23 09:04:21 +00:00
Some checks are pending
Compile and verify functions / compile_verify (push) Waiting to run
Copy headers to separate repo / copy_headers (push) Waiting to run
decomp-dev / publish_progress_decomp_dev (1.0) (push) Waiting to run
lint / clang-format (push) Waiting to run
lint / custom-lint (push) Waiting to run
Check and verify that setup works on NixOS / nixos_verify (push) Waiting to run
progress / publish_progress (push) Waiting to run
testcompile / test_compile (push) Waiting to run
Trigger full-sync on the tracker repo on push / api-trigger-workflow (push) Waiting to run
79 lines
2.7 KiB
C++
79 lines
2.7 KiB
C++
#pragma once
|
|
|
|
#include <basis/seadTypes.h>
|
|
|
|
#include "Library/HostIO/HioNode.h"
|
|
|
|
namespace al {
|
|
struct ExecuteOrder;
|
|
struct ExecuteSystemInitInfo;
|
|
class ExecutorListActorModelDrawBase;
|
|
class ExecutorListActorDraw;
|
|
class ExecutorListBase;
|
|
class ExecutorListFunctor;
|
|
class ExecutorListIUseExecutorDraw;
|
|
class ExecutorListLayoutDrawBase;
|
|
class FunctorBase;
|
|
class IUseExecutor;
|
|
class LayoutActor;
|
|
class LiveActor;
|
|
|
|
class ExecuteTableHolderDraw : public HioNode {
|
|
public:
|
|
ExecuteTableHolderDraw();
|
|
virtual ~ExecuteTableHolderDraw();
|
|
void init(const char* name, const ExecuteSystemInitInfo& initInfo, const ExecuteOrder* orders,
|
|
s32 orderCount);
|
|
ExecutorListActorModelDrawBase*
|
|
registerExecutorListActorModel(ExecutorListActorModelDrawBase* listActorModel);
|
|
ExecutorListActorDraw* registerExecutorListActor(ExecutorListActorDraw* listActor);
|
|
ExecutorListLayoutDrawBase* registerExecutorListLayout(ExecutorListLayoutDrawBase* listLayout);
|
|
ExecutorListIUseExecutorDraw* registerExecutorListUser(ExecutorListIUseExecutorDraw* listUser);
|
|
ExecutorListFunctor* registerExecutorListFunctor(ExecutorListFunctor* listFunctor);
|
|
void registerExecutorListAll(ExecutorListBase* list);
|
|
bool tryRegisterActor(LiveActor* actor, const char* listName);
|
|
bool tryRegisterActorModel(LiveActor* actor, const char* listName);
|
|
bool tryRegisterLayout(LayoutActor* layout, const char* listName);
|
|
bool tryRegisterUser(IUseExecutor* user, const char* listName);
|
|
bool tryRegisterFunctor(const FunctorBase& functor, const char* listName);
|
|
void createExecutorListTable();
|
|
void execute() const;
|
|
void executeList(const char* listName) const;
|
|
bool isActive() const;
|
|
|
|
const char* getName() { return mName; }
|
|
|
|
private:
|
|
const char* mName = nullptr;
|
|
s32 mActiveExecutorsSize = 0;
|
|
ExecutorListBase** mActiveExecutors = nullptr;
|
|
|
|
s32 mExecutorsAllSize = 0;
|
|
s32 mExecutorsAllCapacity = 0;
|
|
ExecutorListBase** mExecutorsAll = nullptr;
|
|
|
|
s32 mExecutorsActorCapacity = 0;
|
|
s32 mExecutorsActorSize = 0;
|
|
ExecutorListActorDraw** mExecutorsActor = nullptr;
|
|
|
|
s32 mExecutorsActorModelCapacity = 0;
|
|
s32 mExecutorsActorModelSize = 0;
|
|
ExecutorListActorModelDrawBase** mExecutorsActorModel = nullptr;
|
|
|
|
s32 mExecutorsLayoutCapacity = 0;
|
|
s32 mExecutorsLayoutSize = 0;
|
|
ExecutorListLayoutDrawBase** mExecutorsLayout = nullptr;
|
|
|
|
s32 mExecutorsUserCapacity = 0;
|
|
s32 mExecutorsUserSize = 0;
|
|
ExecutorListIUseExecutorDraw** mExecutorsUser = nullptr;
|
|
|
|
s32 mExecutorsFunctorCapacity = 0;
|
|
s32 mExecutorsFunctorSize = 0;
|
|
ExecutorListFunctor** mExecutorsFunctor = nullptr;
|
|
};
|
|
|
|
static_assert(sizeof(ExecuteTableHolderDraw) == 0x80);
|
|
|
|
} // namespace al
|