Nlgp1.Motions.SpriteMotionを修正
@@ -19,13 +19,12 @@ | ||
19 | 19 | /// <summary> |
20 | 20 | /// モーションを取得します。 |
21 | 21 | /// </summary> |
22 | - /// <param name="layerType">レイヤの種類</param> | |
23 | 22 | /// <param name="imageTypeName">イメージディレクトリ名</param> |
24 | 23 | /// <param name="typeID">イメージID</param> |
25 | 24 | /// <param name="chipSize">イメージのサイズ</param> |
26 | 25 | /// <param name="getMotionType">モーションの種類を取得するデリゲート</param> |
27 | 26 | /// <returns></returns> |
28 | - public static SpriteMotion GetItem( LayerType layerType , string imageTypeName , int typeID , Vector chipSize , Func< MotionType > getMotionType ) { | |
27 | + public static SpriteMotion GetItem( string imageTypeName , int typeID , Vector chipSize , Func< MotionType > getMotionType ) { | |
29 | 28 | lock( caches ) { |
30 | 29 | foreach( SpriteMotion m in caches ) { |
31 | 30 | if( m.ImageTypeName == imageTypeName && m.TypeID == typeID ) |
@@ -32,7 +31,7 @@ | ||
32 | 31 | return m; |
33 | 32 | } |
34 | 33 | } |
35 | - return new SpriteMotion( layerType , imageTypeName , typeID , chipSize , getMotionType ); | |
34 | + return new SpriteMotion( imageTypeName , typeID , chipSize , getMotionType ); | |
36 | 35 | } |
37 | 36 | /// <summary> |
38 | 37 | /// 読み込まれているすべてのスプライトのモーションを解放します。 |
@@ -45,7 +44,7 @@ | ||
45 | 44 | |
46 | 45 | private Dictionary<MotionType,MotionFrame> frame = new Dictionary<MotionType , MotionFrame>( Enum.GetNames( typeof( MotionType ) ).Length ); |
47 | 46 | |
48 | - private SpriteMotion( LayerType layerType , string imageTypeName , int typeID , Vector chipSize , Func< MotionType > getMotionType ) { | |
47 | + private SpriteMotion( string imageTypeName , int typeID , Vector chipSize , Func< MotionType > getMotionType ) { | |
49 | 48 | lock( caches ) |
50 | 49 | caches.Add( this ); |
51 | 50 |
@@ -65,7 +65,7 @@ | ||
65 | 65 | lock( objectList ) |
66 | 66 | objectList.Add( this ); |
67 | 67 | |
68 | - this.Motion = SpriteMotion.GetItem( layerType , imageTypeName , typeID , chipSize , getMotionType ); | |
68 | + this.Motion = SpriteMotion.GetItem( imageTypeName , typeID , chipSize , getMotionType ); | |
69 | 69 | this.Owner = owner; |
70 | 70 | this.LogicParameter = new ActionParameter(); |
71 | 71 | this.LogicParameter.InitX = position.X; |