示例#1
0
 public CAnimation(CAnimation _Copy)
 {
     m_IDResouce     = _Copy.m_IDResouce;
     m_FrameStart    = _Copy.m_FrameStart;
     m_FrameEnd      = _Copy.m_FrameEnd;
     m_LocalTime     = _Copy.m_LocalTime;
     m_TimeAnimation = _Copy.m_TimeAnimation;
     m_CurFrame      = _Copy.m_CurFrame;
     m_NumLoop       = _Copy.m_NumLoop;
 }
 public CAnimation(CAnimation _Copy)
 {
     m_IDResouce = _Copy.m_IDResouce;
     m_FrameStart = _Copy.m_FrameStart;
     m_FrameEnd = _Copy.m_FrameEnd;
     m_LocalTime = _Copy.m_LocalTime;
     m_TimeAnimation = _Copy.m_TimeAnimation;
     m_CurFrame = _Copy.m_CurFrame;
     m_NumLoop = _Copy.m_NumLoop;
 }
示例#3
0
 public CSprite(CSprite _Copy)
 {
     m_IDResource = _Copy.m_IDResource;
     m_SoureRectangle = _Copy.m_SoureRectangle;
     m_FrameWidth = _Copy.m_FrameWidth;
     m_FrameHeight = _Copy.m_FrameHeight;
     m_Cols = _Copy.m_Cols;
     m_Texture = _Copy.m_Texture;
     m_Animation = new CAnimation(_Copy.m_Animation);
     m_Origin = _Copy.m_Origin;
     m_Position = _Copy.m_Position;
     m_Color = _Copy.m_Color;
     m_Rotation = _Copy.m_Rotation;
     m_Scale = _Copy.m_Scale;
     m_Effect = _Copy.m_Effect;
     m_Depth = _Copy.m_Depth;
 }
示例#4
0
 public CSprite(IDResource _IDResouce, int _TotalFrame, int _FrameWidth, int _FrameHeight, int _Cols)
 {
     m_IDResource = _IDResouce;
     m_TotalFrame = _TotalFrame;
     m_FrameWidth = _FrameWidth;
     m_FrameHeight = _FrameHeight;
     m_SoureRectangle = new Rectangle(0, 0, m_FrameWidth, m_FrameHeight);
     m_Cols = _Cols;
     m_Origin = Vector2.Zero;
     m_Position = Vector2.Zero;
     m_Rotation = 0.0f;
     m_Scale = new Vector2(1.0f, 1.0f);
     m_Effect = SpriteEffects.None;
     m_Depth = 0.0f;
     m_Color = Color.White;
     m_Animation = new CAnimation();
 }
示例#5
0
 public CSprite(CSprite _Copy)
 {
     m_IDResource     = _Copy.m_IDResource;
     m_SoureRectangle = _Copy.m_SoureRectangle;
     m_FrameWidth     = _Copy.m_FrameWidth;
     m_FrameHeight    = _Copy.m_FrameHeight;
     m_Cols           = _Copy.m_Cols;
     m_Texture        = _Copy.m_Texture;
     m_Animation      = new CAnimation(_Copy.m_Animation);
     m_Origin         = _Copy.m_Origin;
     m_Position       = _Copy.m_Position;
     m_Color          = _Copy.m_Color;
     m_Rotation       = _Copy.m_Rotation;
     m_Scale          = _Copy.m_Scale;
     m_Effect         = _Copy.m_Effect;
     m_Depth          = _Copy.m_Depth;
 }
示例#6
0
 public CSprite(IDResource _IDResouce, int _TotalFrame, int _FrameWidth, int _FrameHeight, int _Cols)
 {
     m_IDResource     = _IDResouce;
     m_TotalFrame     = _TotalFrame;
     m_FrameWidth     = _FrameWidth;
     m_FrameHeight    = _FrameHeight;
     m_SoureRectangle = new Rectangle(0, 0, m_FrameWidth, m_FrameHeight);
     m_Cols           = _Cols;
     m_Origin         = Vector2.Zero;
     m_Position       = Vector2.Zero;
     m_Rotation       = 0.0f;
     m_Scale          = new Vector2(1.0f, 1.0f);
     m_Effect         = SpriteEffects.None;
     m_Depth          = 0.0f;
     m_Color          = Color.White;
     m_Animation      = new CAnimation();
 }