Пример #1
0
 public MapleObject(Vector2 pos, int zIndex, MapleAnimation can, int layer)
 {
     Position = pos;
     Index = zIndex;
     Canvas = can;
     lay = layer;
 }
Пример #2
0
 public MapleNpc(int id, MapleAnimation ani, Vector2 loc, int layer, bool hide = false)
 {
     ID = id;
     Animation = ani;
     Location = loc;
     Hidden = hide;
     Layer = layer;
 }
Пример #3
0
 public MapleBackground(int i, MapleAnimation ani, Vector2 loc, int type, bool isBack = false)
 {
     Width = ani.Frames[0].Canvas.Texture.Width;
     Height = ani.Frames[0].Canvas.Texture.Height;
     Index = i;
     Type = (BackgroundTypes)Enum.ToObject(typeof(BackgroundTypes), type);
     IsBack = isBack;
     Animation = ani;
     Location = loc;
 }