@@ -43,10 +43,16 @@ public void CreateArc()
4343 var root = notesContainer . transform . root ;
4444 var notePlacement = root . GetComponentInChildren < NotePlacement > ( ) ;
4545
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+ } ;
5056 PlaceUtils . PlaceNote ( notePlacement , baseNoteA ) ;
5157 PlaceUtils . PlaceNote ( notePlacement , baseNoteB ) ;
5258
@@ -87,7 +93,7 @@ public void CreateArcWithCoordinates()
8793 var headCustomData = new JSONObject { [ "coordinates" ] = headCoordinates } ;
8894 var tailCustomData = new JSONObject { [ "coordinates" ] = tailCoordinates } ;
8995
90- var arcCustomData = new JSONObject
96+ var expectedArcCustomData = new JSONObject
9197 {
9298 [ "coordinates" ] = headCoordinates ,
9399 [ "tailCoordinates" ] = tailCoordinates
@@ -99,11 +105,17 @@ public void CreateArcWithCoordinates()
99105 var root = notesContainer . transform . root ;
100106 var notePlacement = root . GetComponentInChildren < NotePlacement > ( ) ;
101107
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+ } ;
104113
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+ } ;
107119
108120 PlaceUtils . PlaceNote ( notePlacement , baseNoteA ) ;
109121 PlaceUtils . PlaceNote ( notePlacement , baseNoteB ) ;
@@ -132,7 +144,7 @@ public void CreateArcWithCoordinates()
132144
133145 CheckUtils . CheckArc ( "Check generated arc" , arcsContainer , 0 , 2f , ( int ) GridX . Left , ( int ) GridY . Base ,
134146 ( 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 ) ;
136148 }
137149 }
138150
@@ -147,9 +159,21 @@ public void InvertArc()
147159 var arcPlacement = root . GetComponentInChildren < ArcPlacement > ( ) ;
148160 var inputController = root . GetComponentInChildren < BeatmapArcInputController > ( ) ;
149161
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+ } ;
153177 PlaceUtils . PlaceArc ( arcPlacement , baseArc ) ;
154178
155179 if ( arcsContainer . LoadedContainers [ baseArc ] is ArcContainer containerA )
@@ -179,9 +203,21 @@ public void UpdateArcMultiplier()
179203 var arcPlacement = root . GetComponentInChildren < ArcPlacement > ( ) ;
180204 var inputController = root . GetComponentInChildren < BeatmapArcInputController > ( ) ;
181205
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+ } ;
185221 PlaceUtils . PlaceArc ( arcPlacement , baseArc ) ;
186222
187223 if ( arcsContainer . LoadedContainers [ baseArc ] is ArcContainer containerA )
0 commit comments