This repository was archived by the owner on Dec 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRegistry.hx
151 lines (127 loc) · 4.71 KB
/
Registry.hx
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/**
* @ Author: 4mbr0s3 2
* @ Create Time: 2021-07-15 16:25:02
* @ Modified by: 4mbr0s3 2
* @ Modified time: 2021-11-02 18:29:03
*/
package schmovin;
import flixel.FlxG;
import schmovin.misc_mods.MiscModCamCopyPosition;
import schmovin.misc_mods.MiscModCamRaymarch;
import schmovin.note_mods.ISchmovinNoteMod;
import schmovin.note_mods.NoteModBeat;
import schmovin.note_mods.NoteModColumnSwaps;
import schmovin.note_mods.NoteModConfusion;
import schmovin.note_mods.NoteModDrunk;
import schmovin.note_mods.NoteModPerspective;
import schmovin.note_mods.NoteModReverse;
import schmovin.note_mods.NoteModRotate;
import schmovin.note_mods.NoteModSine;
import schmovin.note_mods.NoteModSquare;
import schmovin.note_mods.NoteModTiny;
import schmovin.note_mods.NoteModTipsy;
import schmovin.note_mods.NoteModTornado;
import schmovin.note_mods.NoteModTranslate;
import schmovin.note_mods.NoteModZigzag;
class Registry
{
var _modList:SchmovinNoteModList;
var _state:PlayState;
public function new(modList:SchmovinNoteModList, state:PlayState)
{
_modList = modList;
_state = state;
}
function AddNoteMod(modName:String, mod:ISchmovinNoteMod, putInOrderedList:Bool = true)
{
_modList.AddNoteMod(modName, mod, putInOrderedList);
}
function AddNoteSubMod(modName:String)
{
_modList.AddNoteSubMod(modName);
}
public function Register()
{
AddNoteSubMod('xmod');
AddNoteSubMod('forcexmod');
for (i in 0...4)
{
AddNoteSubMod('xmod${i}');
AddNoteSubMod('forcexmod${i}');
}
AddNoteSubMod('split');
AddNoteSubMod('cross');
for (i in 0...4)
AddNoteSubMod('reverse${i}');
AddNoteMod('reverse', new NoteModReverse(_state, _modList));
AddNoteMod('invert', new NoteModInvert(_state, _modList));
AddNoteMod('flip', new NoteModFlip(_state, _modList));
AddNoteMod('tipsy', new NoteModTipsy(_state, _modList));
AddNoteMod('drunk', new NoteModDrunk(_state, _modList));
AddNoteMod('tornado', new NoteModTornado(_state, _modList));
AddNoteMod('beat', new NoteModBeat(_state, _modList));
AddNoteSubMod('arrowpath');
for (i in 0...4)
AddNoteSubMod('arrowpath${i}');
AddNoteSubMod('arrowpathsize');
for (i in 0...4)
AddNoteSubMod('arrowpathsize${i}');
AddNoteSubMod('confusionzoffset');
for (i in 0...4)
AddNoteSubMod('confusionzoffset${i}');
AddNoteMod('confusion', new NoteModConfusion(_state, _modList));
for (i in 0...4)
{
AddNoteSubMod('tiny${i}');
AddNoteSubMod('tinyx${i}');
AddNoteSubMod('tinyy${i}');
}
AddNoteSubMod('tinyx');
AddNoteSubMod('tinyy');
AddNoteMod('tiny', new NoteModTiny(_state, _modList));
AddNoteSubMod('rotatex');
AddNoteSubMod('rotatey');
AddNoteMod('rotatez', new NoteModRotate(_state, _modList));
AddNoteSubMod('centerrotatex');
AddNoteSubMod('centerrotatey');
AddNoteMod('centerrotatez', new NoteModRotate(_state, _modList, true, 'centerrotate', new lime.math.Vector4(FlxG.width / 2, FlxG.height / 2)));
AddNoteSubMod('xoffset');
AddNoteSubMod('yoffset');
AddNoteSubMod('zoffset');
AddNoteSubMod('y');
AddNoteSubMod('z');
AddNoteMod('x', new NoteModTranslate(_state, _modList));
AddNoteMod('zigzag', new NoteModZigzag(_state, _modList));
AddNoteMod('square', new NoteModSquare(_state, _modList));
AddNoteSubMod('camgameoverride');
AddNoteSubMod('camgameoverridex');
AddNoteSubMod('camgameoverridey');
AddNoteSubMod('camgamezoom');
AddNoteSubMod('camgameangle');
AddNoteSubMod('camgamey');
AddNoteMod('camgamex', new MiscModCamCopyPosition(_state, _modList, false, _modList.GetSchmovinInstance().camGameCopy, 0, 'camgame'));
// Modifying the note camera directly is discouraged (since the scrollFactor for notes and receptors default to 0)
// Instead, use the note mod transformations.
AddNoteSubMod('camnotesrmpitch');
AddNoteSubMod('camnotesrmyaw');
AddNoteSubMod('camnotesrmx');
AddNoteSubMod('camnotesrmy');
AddNoteSubMod('camnotesrmz');
AddNoteSubMod('camnotesrmlookatx');
AddNoteSubMod('camnotesrmlookaty');
AddNoteSubMod('camnotesrmlookatz');
AddNoteMod('camnotesrm', new MiscModCamRaymarch(_state, _modList, false, _modList.GetSchmovinInstance().camNotes, 0));
AddNoteSubMod('camgamermpitch');
AddNoteSubMod('camgamermyaw');
AddNoteSubMod('camgamermx');
AddNoteSubMod('camgamermy');
AddNoteSubMod('camgamermz');
AddNoteSubMod('camgamermlookatx');
AddNoteSubMod('camgamermlookaty');
AddNoteSubMod('camgamermlookatz');
AddNoteMod('camgamerm', new MiscModCamRaymarch(_state, _modList, false, _modList.GetSchmovinInstance().camGameCopy, 0, 'camgamerm'));
AddNoteMod('sine', new NoteModSine(_state, _modList));
// These mods are not automatically put in the call order array. They can be added manually to the array by the client.
AddNoteMod('perspective', new NoteModPerspective(_state, _modList));
}
}