mirror of
https://github.com/zeldaret/ss
synced 2026-05-25 07:23:00 -04:00
26af4db82d
* update from dtk-template and start work towards using clangd * include <a> -> "a" * Update build.yml * remove/add non-trivial class in union warning
35 lines
884 B
C++
35 lines
884 B
C++
#ifndef F_LIST_MANAGER_FUNC_H
|
|
#define F_LIST_MANAGER_FUNC_H
|
|
|
|
// This file was ported from
|
|
// https://github.com/NSMBW-Community/NSMBW-Decomp/blob/master/include/dol/framework/f_list_mg_ptmf.hpp
|
|
|
|
#include "common.h"
|
|
#include "f/f_list_mg.h"
|
|
#include "f/f_list_nd_prio.h"
|
|
|
|
|
|
class fBase_c;
|
|
|
|
/// @brief A list of fLiNdPrio_c nodes with a reference to a process function.
|
|
/// @note Unofficial name.
|
|
class fLiMgPTMF_c : public fLiMgBa_c {
|
|
public:
|
|
fLiMgPTMF_c(int (fBase_c::*procFunc)()) : mpProcFunc(procFunc) {}
|
|
/* 802e2680 */ void addNode(fLiNdPrio_c *node);
|
|
/* 802e26e0 */ bool walkPack();
|
|
|
|
fLiNdPrio_c *getFirst() const {
|
|
return (fLiNdPrio_c *)fLiMgBa_c::getFirst();
|
|
}
|
|
|
|
fLiNdPrio_c *getLast() const {
|
|
return (fLiNdPrio_c *)fLiMgBa_c::getLast();
|
|
}
|
|
|
|
private:
|
|
int (fBase_c::*mpProcFunc)(); ///< The process function for the list.
|
|
};
|
|
|
|
#endif
|