From e5de5d76a34c0c324dcc2f2b2b0648c46acbe80b Mon Sep 17 00:00:00 2001 From: Edu Garcia Date: Sat, 1 Oct 2016 15:47:05 +1000 Subject: [PATCH] Replaced Int scene ids with IdType from stencyl-engine --- .gitignore | 6 +++++- engine/src/scripts/MyAssets.hx | 6 ++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index ae7c927..bf70daf 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,8 @@ engine/hxml/export_classes.info engine/src/AllStencyl.hx engine/temp/ export/ -run.n \ No newline at end of file +run.n + +.idea/ +*.iml + diff --git a/engine/src/scripts/MyAssets.hx b/engine/src/scripts/MyAssets.hx index d0a1e9b..a4931f6 100644 --- a/engine/src/scripts/MyAssets.hx +++ b/engine/src/scripts/MyAssets.hx @@ -2,6 +2,8 @@ package scripts; import com.stencyl.AssetLoader; +import com.stencyl.models.IdType; + class MyAssets implements AssetLoader { //Game @@ -10,7 +12,7 @@ class MyAssets implements AssetLoader public static var scaleMode:Int; public static var stageWidth:Int; public static var stageHeight:Int; - public static var initSceneID:Int; + public static var initSceneID:IdType; public static var physicsMode:Int; public static var gameScale:Float; public static var gameImageBase:String; @@ -49,7 +51,7 @@ class MyAssets implements AssetLoader loader.loadResources; } - public function loadScenes(scenesXML:Map):Void + public function loadScenes(scenesXML:Map):Void { loader.loadScenes; }