mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-10-23 07:53:18 -05:00
29 lines
506 B
C++
29 lines
506 B
C++
#ifndef SCRIPT_OBJ_H
|
|
#define SCRIPT_OBJ_H
|
|
|
|
#include <tonc.h>
|
|
typedef struct
|
|
{
|
|
u16 text_entry_index;
|
|
u16 conditional_index;
|
|
u16 next_if_true;
|
|
u16 next_if_false;
|
|
} script_obj_params;
|
|
|
|
class script_obj
|
|
{
|
|
public:
|
|
script_obj();
|
|
script_obj(const script_obj_params ¶ms);
|
|
|
|
bool has_text() const;
|
|
u8 get_text_entry_index() const;
|
|
u16 get_true_index() const;
|
|
u16 get_false_index() const;
|
|
u16 get_cond_id() const;
|
|
|
|
private:
|
|
script_obj_params params_;
|
|
};
|
|
|
|
#endif |