File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ typedef ALEStageObject = {
66 @:optional var classArguments : Array <Dynamic >;
77 @:optional var path : String ;
88 @:optional var properties : Any ;
9+ @:optional var cameras : Array <String >;
910 @:optional var addMethod : String ;
1011 @:optional var highQuality : Bool ;
1112}
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package funkin.visuals.game;
22
33import utils .ALEFormatter ;
44
5+ import flixel .FlxCamera ;
56import flixel .FlxBasic ;
67
78import core .structures .StageArray ;
@@ -103,6 +104,19 @@ class Stage
103104 if (props != null )
104105 CoolUtil .setMultiProperty (obj , props );
105106
107+ if (object .cameras != null )
108+ {
109+ obj .cameras = [];
110+
111+ for (camera in object .cameras )
112+ {
113+ final result : Dynamic = Reflect .getProperty (game , camera );
114+
115+ if (result != null && result is FlxCamera )
116+ obj .cameras .push (result );
117+ }
118+ }
119+
106120 obj .exists = false ;
107121
108122 obj .updateHitbox ();
You can’t perform that action at this time.
0 commit comments