pass skipping to _showScene() and showSet()
This commit is contained in:
@@ -53,7 +53,7 @@ interface Director<Set, Actor, Sound, Song, Prop, VoiceTrack, Camera, LightSourc
|
||||
|
||||
function loadSet(path:String):Set;
|
||||
function cloneSet(set:Set):Set;
|
||||
function showSet(set:Set, time:SceneTime, perspective:ScenePerspective, appearance:Appearance, camera:Camera, cc:Continuation):Void;
|
||||
function showSet(set:Set, time:SceneTime, perspective:ScenePerspective, appearance:Appearance, camera:Camera, skipping:Bool, cc:Continuation):Void;
|
||||
function hideSet(set:Set, camera: Camera, cc:Continuation):Void;
|
||||
|
||||
function showLighting(sceneTime:SceneTime, lightSources:Array<LightSource>, camera:Camera):Void;
|
||||
|
@@ -445,13 +445,14 @@
|
||||
])]
|
||||
(director.showLighting scene.time allLightSources scene.camera)))
|
||||
|
||||
(method _showScene [:Scene<Set,Actor,Prop,Camera> scene :Appearance appearance :Camera camera :Continuation cc]
|
||||
(method _showScene [:Scene<Set,Actor,Prop,Camera> scene :Appearance appearance :Camera camera :Bool skipping :Continuation cc]
|
||||
(let [cc
|
||||
(makeCC cc
|
||||
(_updateLighting)
|
||||
(cc))]
|
||||
// Show current scene background
|
||||
(director.showSet scene.set scene.time scene.perspective appearance camera
|
||||
skipping
|
||||
(makeCC cc
|
||||
// Show current scene characters
|
||||
(_ccForEach
|
||||
@@ -1267,6 +1268,7 @@
|
||||
(dictGet scenes name)
|
||||
(appearanceFlag shownScenes name)
|
||||
.camera (dictGet scenes name)
|
||||
skipping
|
||||
cc)))))))
|
||||
|
||||
// Switch scenes but bring all the characters and props from the current one
|
||||
|
Reference in New Issue
Block a user