@@ -166,27 +166,27 @@ public static class EventTypeE
166166 new EventTypeInfo ( EventType . LateUpdate , [ ] ) ,
167167 new EventTypeInfo ( EventType . BoxArt , [ ] ) ,
168168 new EventTypeInfo ( EventType . Touch , [
169- new EventTypeParam ( "screenX" , Modifiers . Out , TypeSymbol . Float ) ,
170- new EventTypeParam ( "screenY" , Modifiers . Out , TypeSymbol . Float ) ,
171- new EventTypeParam ( "TOUCH_STATE" , 0 , TypeSymbol . Float , true ) ,
172- new EventTypeParam ( "TOUCH_FINGER" , 0 , TypeSymbol . Float , true ) ,
169+ new ParameterSymbol ( "screenX" , Modifiers . Out , TypeSymbol . Float ) ,
170+ new ParameterSymbol ( "screenY" , Modifiers . Out , TypeSymbol . Float ) ,
171+ new ParameterSymbol ( "TOUCH_STATE" , Modifiers . Constant , TypeSymbol . Float ) ,
172+ new ParameterSymbol ( "TOUCH_FINGER" , Modifiers . Constant , TypeSymbol . Float ) ,
173173 ] ) ,
174174 new EventTypeInfo ( EventType . Swipe , [
175- new EventTypeParam ( "direction" , Modifiers . Out , TypeSymbol . Vector3 ) ,
175+ new ParameterSymbol ( "direction" , Modifiers . Out , TypeSymbol . Vector3 ) ,
176176 ] ) ,
177177 new EventTypeInfo ( EventType . Button , [
178- new EventTypeParam ( "BUTTON_TYPE" , 0 , TypeSymbol . Float , true ) ,
178+ new ParameterSymbol ( "BUTTON_TYPE" , Modifiers . Constant , TypeSymbol . Float ) ,
179179 ] ) ,
180180 new EventTypeInfo ( EventType . Collision , [
181- new EventTypeParam ( "object1" , 0 , TypeSymbol . Object ) ,
182- new EventTypeParam ( "object2" , Modifiers . Out , TypeSymbol . Object ) ,
183- new EventTypeParam ( "impulse" , Modifiers . Out , TypeSymbol . Float ) ,
184- new EventTypeParam ( "normal" , Modifiers . Out , TypeSymbol . Vector3 ) ,
181+ new ParameterSymbol ( "object1" , 0 , TypeSymbol . Object ) ,
182+ new ParameterSymbol ( "object2" , Modifiers . Out , TypeSymbol . Object ) ,
183+ new ParameterSymbol ( "impulse" , Modifiers . Out , TypeSymbol . Float ) ,
184+ new ParameterSymbol ( "normal" , Modifiers . Out , TypeSymbol . Vector3 ) ,
185185 ] ) ,
186186 new EventTypeInfo ( EventType . Loop , [
187- new EventTypeParam ( "start" , 0 , TypeSymbol . Float ) ,
188- new EventTypeParam ( "stop" , 0 , TypeSymbol . Float ) ,
189- new EventTypeParam ( "counter" , Modifiers . Out , TypeSymbol . Float ) ,
187+ new ParameterSymbol ( "start" , 0 , TypeSymbol . Float ) ,
188+ new ParameterSymbol ( "stop" , 0 , TypeSymbol . Float ) ,
189+ new ParameterSymbol ( "counter" , Modifiers . Out , TypeSymbol . Float ) ,
190190 ] ) ,
191191 } ;
192192
@@ -200,7 +200,7 @@ protected override EventType GetKeyForItem(EventTypeInfo item)
200200 }
201201 }
202202
203- public record EventTypeInfo ( EventType Type , ImmutableArray < EventTypeParam > Parameters )
203+ public record EventTypeInfo ( EventType Type , ImmutableArray < ParameterSymbol > Parameters )
204204 {
205205 public override string ToString ( )
206206 {
@@ -232,10 +232,4 @@ public override string ToString()
232232 . ToString ( ) ;
233233 }
234234 }
235-
236- public record EventTypeParam ( string Name , Modifiers Modifiers , TypeSymbol Type , bool IsConstant = false )
237- {
238- public ParameterSymbol ToParameter ( )
239- => new ParameterSymbol ( Name , Modifiers , Type ) ;
240- }
241235}
0 commit comments