mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 23:05:36 -04:00
937da3c59b
* SComponent c_list / c_node * SComponent: c_tree * SComponent: start c_phase * SComponent: c_tag * SComponent: c_counter * f_pc_line / f_pc_line_tag the beginnings of the framework process system * f_pc_method_tag * SComponent: c_node_iter / c_list_iter / c_tag_iter / c_tree_iter * f_pc_draw_priority * f_pc_method_iter * f_pc_profile Also add (untested) base header classes for f_pc_base * f_pc_searcher * f_pc_create_tag * f_pc_creator * f_pc_layer skeleton * f_pc_method * f_pc_line_iter * f_pc_leaf somewhat * f_pc_delete_tag * f_pc_create_req * Fix a few non-matchings * c_phase: slight additional notes * c_node: more matching * fix build * c_node: One more matching * f_pc_line_iter: Matching * f_pc_create_req: a bit more * f_pc_load, f_pc_deletor partial * f_pc_executor partial * f: minor cleanups * f_pc_executor Co-authored-by: Pheenoh <pheenoh@gmail.com>
47 lines
1.2 KiB
C
47 lines
1.2 KiB
C
|
|
#ifndef F_PC_CREATE_REQ_H
|
|
#define F_PC_CREATE_REQ_H
|
|
|
|
#include "global.h"
|
|
#include "SComponent/c_phase.h"
|
|
#include "SComponent/c_tag.h"
|
|
#include "f/f_pc/f_pc_create_tag.h"
|
|
#include "f/f_pc/f_pc_method.h"
|
|
#include "f/f_pc/f_pc_method_tag.h"
|
|
|
|
struct base_process_class;
|
|
struct layer_class;
|
|
|
|
struct create_request_method_class {
|
|
cPhs__Handler mpHandler;
|
|
process_method_func mpCancel;
|
|
process_method_func mpDelete;
|
|
};
|
|
|
|
struct create_request : public create_tag {
|
|
s8 mbIsCreating;
|
|
s8 mbIsCancelling;
|
|
process_method_tag_class mMtdTg;
|
|
create_request_method_class *mpCtRqMtd;
|
|
void *mpUnk1;
|
|
int mBsPcId;
|
|
base_process_class *mpRes;
|
|
layer_class *mpLayer;
|
|
};
|
|
|
|
extern "C" {
|
|
|
|
bool fpcCtRq_isCreatingByID(create_tag *pTag, int *pId);
|
|
bool fpcCtRq_IsCreatingByID(unsigned int id);
|
|
void fpcCtRq_CreateQTo(create_request *pReq);
|
|
void fpcCtRq_ToCreateQ(create_request *pReq);
|
|
bool fpcCtRq_Delete(create_request *pReq);
|
|
bool fpcCtRq_Cancel(create_request *pReq);
|
|
int fpcCtRq_IsDoing(create_request *pReq);
|
|
void fpcCtRq_Handler(void);
|
|
create_request * fpcCtRq_Create(layer_class *pLayer, unsigned long size, create_request_method_class *pCtRqMtd);
|
|
|
|
};
|
|
|
|
#endif
|