FlxMovie support serialized voice line matches

This commit is contained in:
2021-12-30 11:38:07 -07:00
parent 2bebb05edb
commit bd5217cd25

View File

@@ -7,6 +7,7 @@ import hollywoo.Movie;
import hollywoo_flixel.ActorFlxSprite;
import hollywoo_flixel.SceneFlxState;
import hollywoo_flixel.SpriteTools;
import openfl.Assets;
enum FlxStagePosition {
Left;
@@ -31,4 +32,12 @@ enum FlxScreenPosition {
/**
* Model/controller of a Hollywoo-Flixel film, and main execution script
*/
class FlxMovie extends Movie<String, FlxStagePosition, FlxStageFacing, FlxScreenPosition, ActorFlxSprite, FlxSound, String, FlxSprite, FlxSound> {}
class FlxMovie extends Movie<String, FlxStagePosition, FlxStageFacing, FlxScreenPosition, ActorFlxSprite, FlxSound, String, FlxSprite, FlxSound> {
public function new(director:FlxDirector, ?voiceLinesAssetPath:String) {
var voiceLinesJson = null;
if (voiceLinesAssetPath != null) {
voiceLinesJson = Assets.getText(voiceLinesAssetPath);
}
super(director, voiceLinesJson);
}
}