-
Notifications
You must be signed in to change notification settings - Fork 5
/
mugencommandreader.h
76 lines (59 loc) · 1.9 KB
/
mugencommandreader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#pragma once
#include <map>
#include <string>
#include <prism/datastructures.h>
#include <prism/animation.h>
typedef enum {
MUGEN_COMMAND_INPUT_STEP_TYPE_PRESS,
MUGEN_COMMAND_INPUT_STEP_TYPE_MULTIPLE,
MUGEN_COMMAND_INPUT_STEP_TYPE_HOLDING,
MUGEN_COMMAND_INPUT_STEP_TYPE_RELEASE,
} DreamMugenCommandInputStepType;
typedef enum {
MUGEN_COMMAND_INPUT_STEP_TARGET_MULTIPLE = 0,
MUGEN_COMMAND_INPUT_STEP_TARGET_DOWN,
MUGEN_COMMAND_INPUT_STEP_TARGET_UP,
MUGEN_COMMAND_INPUT_STEP_TARGET_FORWARD,
MUGEN_COMMAND_INPUT_STEP_TARGET_BACKWARD,
MUGEN_COMMAND_INPUT_STEP_TARGET_A,
MUGEN_COMMAND_INPUT_STEP_TARGET_B,
MUGEN_COMMAND_INPUT_STEP_TARGET_C,
MUGEN_COMMAND_INPUT_STEP_TARGET_X,
MUGEN_COMMAND_INPUT_STEP_TARGET_Y,
MUGEN_COMMAND_INPUT_STEP_TARGET_Z,
MUGEN_COMMAND_INPUT_STEP_TARGET_START,
MUGEN_COMMAND_INPUT_STEP_TARGET_DOWN_FORWARD,
MUGEN_COMMAND_INPUT_STEP_TARGET_DOWN_BACKWARD,
MUGEN_COMMAND_INPUT_STEP_TARGET_UP_FORWARD,
MUGEN_COMMAND_INPUT_STEP_TARGET_UP_BACKWARD,
MUGEN_COMMAND_INPUT_STEP_TARGET_MULTI_DOWN,
MUGEN_COMMAND_INPUT_STEP_TARGET_MULTI_UP,
MUGEN_COMMAND_INPUT_STEP_TARGET_MULTI_FORWARD,
MUGEN_COMMAND_INPUT_STEP_TARGET_MULTI_BACKWARD,
} DreamMugenCommandInputStepTarget;
typedef struct {
Vector mSubSteps;
} DreamMugenCommandInputStepMultipleTargetData;
typedef struct {
int mDuration;
} DreamMugenCommandInputStepReleaseData;
typedef struct{
DreamMugenCommandInputStepType mType;
DreamMugenCommandInputStepTarget mTarget;
int mDoesNotAllowOtherInputBetween;
void* mData;
} DreamMugenCommandInputStep;
typedef struct {
Vector mInputSteps;
int mTime;
int mBufferTime;
} DreamMugenCommandInput;
typedef struct {
Vector mInputs;
int mMinimumDuration;
} DreamMugenCommand;
typedef struct {
std::map<std::string, DreamMugenCommand> mCommands;
} DreamMugenCommands;
DreamMugenCommands loadDreamMugenCommandFile(char* tPath);
void unloadDreamMugenCommandFile(DreamMugenCommands* tCommands);