예제 #1
0
 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;
 }