Skip to content

Commit

Permalink
Add Maniac Patch Event commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghabry committed Nov 5, 2018
1 parent cce3e50 commit 62c82c6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
7 changes: 7 additions & 0 deletions generator/csv/enums_easyrpg.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#Structure,Entry,Value,Index
EventCommand,Code,Maniac_GetSaveInfo,3001
EventCommand,Code,Maniac_Save,3002
EventCommand,Code,Maniac_Load,3003
EventCommand,Code,Maniac_EndLoadProcessing,3004
EventCommand,Code,Maniac_GetMousePosition,3005
EventCommand,Code,Maniac_SetMousePosition,3006
2 changes: 1 addition & 1 deletion generator/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def main(argv):

structs = get_structs('structs.csv')
sfields = get_fields('fields.csv')
enums = get_enums('enums.csv', 'enums_maniac.csv')
enums = get_enums('enums.csv', 'enums_easyrpg.csv')
flags = get_flags('flags.csv')
setup = get_setup('setup.csv')
headers = get_headers()
Expand Down
16 changes: 14 additions & 2 deletions src/generated/rpg_eventcommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,13 @@ namespace RPG {
EndLoop = 22210,
Comment_2 = 22410,
ElseBranch_B = 23310,
EndBranch_B = 23311
EndBranch_B = 23311,
Maniac_GetSaveInfo = 3001,
Maniac_Save = 3002,
Maniac_Load = 3003,
Maniac_EndLoadProcessing = 3004,
Maniac_GetMousePosition = 3005,
Maniac_SetMousePosition = 3006
};
};
static constexpr auto kCodeTags = makeEnumTags<Code::Index>(
Expand Down Expand Up @@ -284,7 +290,13 @@ namespace RPG {
"EndLoop",
"Comment_2",
"ElseBranch_B",
"EndBranch_B"
"EndBranch_B",
"Maniac_GetSaveInfo",
"Maniac_Save",
"Maniac_Load",
"Maniac_EndLoadProcessing",
"Maniac_GetMousePosition",
"Maniac_SetMousePosition"
);

int32_t code = 0;
Expand Down

0 comments on commit 62c82c6

Please sign in to comment.