public MapleObject(Vector2 pos, int zIndex, MapleAnimation can, int layer) { Position = pos; Index = zIndex; Canvas = can; lay = layer; }
public MapleNpc(int id, MapleAnimation ani, Vector2 loc, int layer, bool hide = false) { ID = id; Animation = ani; Location = loc; Hidden = hide; Layer = layer; }
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; }