浏览代码

Move fx2d files

Tom Spira 6 年之前
父节点
当前提交
5ba7684f16
共有 4 个文件被更改,包括 6 次插入6 次删除
  1. 3 3
      hrt/prefab/fx/FX2D.hx
  2. 1 1
      hrt/prefab/fx2d/Anim2D.hx
  3. 1 1
      hrt/prefab/fx2d/Atlas.hx
  4. 1 1
      hrt/prefab/fx2d/Bitmap.hx

+ 3 - 3
hrt/prefab/fx/FX2D.hx

@@ -91,13 +91,13 @@ class FX2DAnimation extends h2d.Object {
 				}
 				}
 			}
 			}
 			
 			
-			var atlas = Std.downcast(anim.elt2d, hrt.prefab.Atlas);
+			var atlas = Std.downcast(anim.elt2d, hrt.prefab.fx2d.Atlas);
 			if (atlas != null) {
 			if (atlas != null) {
 				@:privateAccess if (!atlas.loop && newLoop)  {
 				@:privateAccess if (!atlas.loop && newLoop)  {
 					atlas.h2dAnim.currentFrame = 0;
 					atlas.h2dAnim.currentFrame = 0;
 				}
 				}
 			} else {
 			} else {
-				var atlas = Std.downcast(anim.elt2d, hrt.prefab.Anim2D);
+				var atlas = Std.downcast(anim.elt2d, hrt.prefab.fx2d.Anim2D);
 				if (atlas != null) {
 				if (atlas != null) {
 					@:privateAccess if (!atlas.loop && newLoop)  {
 					@:privateAccess if (!atlas.loop && newLoop)  {
 						atlas.h2dAnim.currentFrame = 0;
 						atlas.h2dAnim.currentFrame = 0;
@@ -208,7 +208,7 @@ class FX2D extends BaseFX {
 			anyFound = true;
 			anyFound = true;
 		}
 		}
 
 
-		if (Std.is(elt, hrt.prefab.Anim2D) || Std.is(elt, hrt.prefab.Atlas))
+		if (Std.is(elt, hrt.prefab.fx2d.Anim2D) || Std.is(elt, hrt.prefab.fx2d.Atlas))
 			anyFound = true;
 			anyFound = true;
 
 
 		if(anyFound)
 		if(anyFound)

+ 1 - 1
hrt/prefab/Anim2D.hx → hrt/prefab/fx2d/Anim2D.hx

@@ -1,4 +1,4 @@
-package hrt.prefab;
+package hrt.prefab.fx2d;
 
 
 class Anim2D extends Object2D {
 class Anim2D extends Object2D {
 
 

+ 1 - 1
hrt/prefab/Atlas.hx → hrt/prefab/fx2d/Atlas.hx

@@ -1,4 +1,4 @@
-package hrt.prefab;
+package hrt.prefab.fx2d;
 
 
 class Atlas extends Object2D {
 class Atlas extends Object2D {
 
 

+ 1 - 1
hrt/prefab/Bitmap.hx → hrt/prefab/fx2d/Bitmap.hx

@@ -1,4 +1,4 @@
-package hrt.prefab;
+package hrt.prefab.fx2d;
 
 
 class Bitmap extends Object2D {
 class Bitmap extends Object2D {