コード例 #1
0
ファイル: AnimatedTexture2D.cs プロジェクト: lytedev/wrack
 public AnimatedTexture2D(string textureName)
 {
     Size = Vector2.One;
     CurrentAnimation = new Animation();
     TextureName = textureName;
     Size = new Vector2(Texture.Width, Texture.Height);
 }
コード例 #2
0
ファイル: Animation.cs プロジェクト: lytedev/wrack
 public static Animation FromLoaderData(int frames, int startingFrame, int frameTime, bool swings)
 {
     Animation a = new Animation();
     a.Frames = frames;
     a.StartingFrame = startingFrame;
     a.FrameTime = frameTime;
     a.Swings = swings;
     a.IsSwinging = false;
     return a;
 }
コード例 #3
0
ファイル: Animation.cs プロジェクト: lytedev/wrack
 public virtual Animation DeepClone()
 {
     Animation a = new Animation();
     a.Frames = Frames;
     a.StartingFrame = StartingFrame;
     a.FrameTime = FrameTime;
     a.Swings = Swings;
     a.IsSwinging = IsSwinging;
     return a;
 }