• R/O
  • SSH
  • HTTPS

nlgp1: Commit


Commit MetaInfo

Revision806 (tree)
Zeit2011-02-26 10:20:14
Autorbiikame

Log Message

Nlgp1.Motions.SpriteMotionを修正

Ändern Zusammenfassung

Diff

--- trunk/Nlgp1/Nlgp1/Motions/SpriteMotion.cs (revision 805)
+++ trunk/Nlgp1/Nlgp1/Motions/SpriteMotion.cs (revision 806)
@@ -19,13 +19,12 @@
1919 /// <summary>
2020 /// モーションを取得します。
2121 /// </summary>
22- /// <param name="layerType">レイヤの種類</param>
2322 /// <param name="imageTypeName">イメージディレクトリ名</param>
2423 /// <param name="typeID">イメージID</param>
2524 /// <param name="chipSize">イメージのサイズ</param>
2625 /// <param name="getMotionType">モーションの種類を取得するデリゲート</param>
2726 /// <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 ) {
2928 lock( caches ) {
3029 foreach( SpriteMotion m in caches ) {
3130 if( m.ImageTypeName == imageTypeName && m.TypeID == typeID )
@@ -32,7 +31,7 @@
3231 return m;
3332 }
3433 }
35- return new SpriteMotion( layerType , imageTypeName , typeID , chipSize , getMotionType );
34+ return new SpriteMotion( imageTypeName , typeID , chipSize , getMotionType );
3635 }
3736 /// <summary>
3837 /// 読み込まれているすべてのスプライトのモーションを解放します。
@@ -45,7 +44,7 @@
4544
4645 private Dictionary<MotionType,MotionFrame> frame = new Dictionary<MotionType , MotionFrame>( Enum.GetNames( typeof( MotionType ) ).Length );
4746
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 ) {
4948 lock( caches )
5049 caches.Add( this );
5150
--- trunk/Nlgp1/Nlgp1/Sprites/Sprite.cs (revision 805)
+++ trunk/Nlgp1/Nlgp1/Sprites/Sprite.cs (revision 806)
@@ -65,7 +65,7 @@
6565 lock( objectList )
6666 objectList.Add( this );
6767
68- this.Motion = SpriteMotion.GetItem( layerType , imageTypeName , typeID , chipSize , getMotionType );
68+ this.Motion = SpriteMotion.GetItem( imageTypeName , typeID , chipSize , getMotionType );
6969 this.Owner = owner;
7070 this.LogicParameter = new ActionParameter();
7171 this.LogicParameter.InitX = position.X;
Show on old repository browser