@@ -43,10 +43,16 @@ public void CreateArc()
43
43
var root = notesContainer . transform . root ;
44
44
var notePlacement = root . GetComponentInChildren < NotePlacement > ( ) ;
45
45
46
- BaseNote baseNoteA = new V3ColorNote ( 2f , ( int ) GridX . Left , ( int ) GridY . Base , ( int ) NoteType . Red ,
47
- ( int ) NoteCutDirection . Down ) ;
48
- BaseNote baseNoteB = new V3ColorNote ( 3f , ( int ) GridX . Left , ( int ) GridY . Upper , ( int ) NoteType . Red ,
49
- ( int ) NoteCutDirection . Up ) ;
46
+ BaseNote baseNoteA = new BaseNote
47
+ {
48
+ JsonTime = 2f , PosX = ( int ) GridX . Left , PosY = ( int ) GridY . Base , Type = ( int ) NoteType . Red ,
49
+ CutDirection = ( int ) NoteCutDirection . Down
50
+ } ;
51
+ BaseNote baseNoteB = new BaseNote
52
+ {
53
+ JsonTime = 3f , PosX = ( int ) GridX . Left , PosY = ( int ) GridY . Upper , Type = ( int ) NoteType . Red ,
54
+ CutDirection = ( int ) NoteCutDirection . Up
55
+ } ;
50
56
PlaceUtils . PlaceNote ( notePlacement , baseNoteA ) ;
51
57
PlaceUtils . PlaceNote ( notePlacement , baseNoteB ) ;
52
58
@@ -87,7 +93,7 @@ public void CreateArcWithCoordinates()
87
93
var headCustomData = new JSONObject { [ "coordinates" ] = headCoordinates } ;
88
94
var tailCustomData = new JSONObject { [ "coordinates" ] = tailCoordinates } ;
89
95
90
- var arcCustomData = new JSONObject
96
+ var expectedArcCustomData = new JSONObject
91
97
{
92
98
[ "coordinates" ] = headCoordinates ,
93
99
[ "tailCoordinates" ] = tailCoordinates
@@ -99,11 +105,17 @@ public void CreateArcWithCoordinates()
99
105
var root = notesContainer . transform . root ;
100
106
var notePlacement = root . GetComponentInChildren < NotePlacement > ( ) ;
101
107
102
- BaseNote baseNoteA = new V3ColorNote ( 2f , ( int ) GridX . Left , ( int ) GridY . Base , ( int ) NoteType . Red ,
103
- ( int ) NoteCutDirection . Down , headCustomData ) ;
108
+ BaseNote baseNoteA = new BaseNote
109
+ {
110
+ JsonTime = 2f , PosX = ( int ) GridX . Left , PosY = ( int ) GridY . Base , Type = ( int ) NoteType . Red ,
111
+ CutDirection = ( int ) NoteCutDirection . Down , CustomData = headCustomData
112
+ } ;
104
113
105
- BaseNote baseNoteB = new V3ColorNote ( 3f , ( int ) GridX . Left , ( int ) GridY . Upper , ( int ) NoteType . Red ,
106
- ( int ) NoteCutDirection . Up , tailCustomData ) ;
114
+ BaseNote baseNoteB = new BaseNote
115
+ {
116
+ JsonTime = 3f , PosX = ( int ) GridX . Left , PosY = ( int ) GridY . Upper , Type = ( int ) NoteType . Red ,
117
+ CutDirection = ( int ) NoteCutDirection . Up , CustomData = tailCustomData
118
+ } ;
107
119
108
120
PlaceUtils . PlaceNote ( notePlacement , baseNoteA ) ;
109
121
PlaceUtils . PlaceNote ( notePlacement , baseNoteB ) ;
@@ -132,7 +144,7 @@ public void CreateArcWithCoordinates()
132
144
133
145
CheckUtils . CheckArc ( "Check generated arc" , arcsContainer , 0 , 2f , ( int ) GridX . Left , ( int ) GridY . Base ,
134
146
( int ) NoteColor . Red , ( int ) NoteCutDirection . Down , 0 , 1 , 3f , ( int ) GridX . Left , ( int ) GridY . Upper ,
135
- ( int ) NoteCutDirection . Up , 1 , 0 , arcCustomData ) ;
147
+ ( int ) NoteCutDirection . Up , 1 , 0 , expectedArcCustomData ) ;
136
148
}
137
149
}
138
150
@@ -147,9 +159,21 @@ public void InvertArc()
147
159
var arcPlacement = root . GetComponentInChildren < ArcPlacement > ( ) ;
148
160
var inputController = root . GetComponentInChildren < BeatmapArcInputController > ( ) ;
149
161
150
- BaseArc baseArc = new V3Arc ( 2f , ( int ) GridX . Left , ( int ) GridY . Base , ( int ) NoteColor . Red ,
151
- ( int ) NoteCutDirection . Left , 0 , 1f , 3f , ( int ) GridX . Left , ( int ) GridY . Base , ( int ) NoteCutDirection . Left ,
152
- 1f , 0 ) ;
162
+ BaseArc baseArc = new BaseArc
163
+ {
164
+ JsonTime = 2f ,
165
+ PosX = ( int ) GridX . Left ,
166
+ PosY = ( int ) GridY . Base ,
167
+ Color = ( int ) NoteColor . Red ,
168
+ CutDirection = ( int ) NoteCutDirection . Left ,
169
+ HeadControlPointLengthMultiplier = 1f ,
170
+ TailJsonTime = 3f ,
171
+ TailPosX = ( int ) GridX . Left ,
172
+ TailPosY = ( int ) GridY . Base ,
173
+ TailCutDirection = ( int ) NoteCutDirection . Left ,
174
+ TailControlPointLengthMultiplier = 1f ,
175
+ MidAnchorMode = 0
176
+ } ;
153
177
PlaceUtils . PlaceArc ( arcPlacement , baseArc ) ;
154
178
155
179
if ( arcsContainer . LoadedContainers [ baseArc ] is ArcContainer containerA )
@@ -179,9 +203,21 @@ public void UpdateArcMultiplier()
179
203
var arcPlacement = root . GetComponentInChildren < ArcPlacement > ( ) ;
180
204
var inputController = root . GetComponentInChildren < BeatmapArcInputController > ( ) ;
181
205
182
- BaseArc baseArc = new V3Arc ( 2f , ( int ) GridX . Left , ( int ) GridY . Base , ( int ) NoteColor . Red ,
183
- ( int ) NoteCutDirection . Left , 0 , 1f , 3f , ( int ) GridX . Left , ( int ) GridY . Base , ( int ) NoteCutDirection . Left ,
184
- 1f , 0 ) ;
206
+ BaseArc baseArc = new BaseArc
207
+ {
208
+ JsonTime = 2f ,
209
+ PosX = ( int ) GridX . Left ,
210
+ PosY = ( int ) GridY . Base ,
211
+ Color = ( int ) NoteColor . Red ,
212
+ CutDirection = ( int ) NoteCutDirection . Left ,
213
+ HeadControlPointLengthMultiplier = 1f ,
214
+ TailJsonTime = 3f ,
215
+ TailPosX = ( int ) GridX . Left ,
216
+ TailPosY = ( int ) GridY . Base ,
217
+ TailCutDirection = ( int ) NoteCutDirection . Left ,
218
+ TailControlPointLengthMultiplier = 1f ,
219
+ MidAnchorMode = 0
220
+ } ;
185
221
PlaceUtils . PlaceArc ( arcPlacement , baseArc ) ;
186
222
187
223
if ( arcsContainer . LoadedContainers [ baseArc ] is ArcContainer containerA )
0 commit comments