public void MoveSMs(Vector2 moveVec, SpriteManager[] SMs) { foreach (SpriteManager sm in SMs) sm.MgrPosition += moveVec; }
public ASprite(ASprite sp) { Game = sp.Game; _manager = sp._manager; Owner = sp.Owner; Position = sp.Position; Depth = sp.Depth; Origin = sp.Origin; Color = sp.Color; Rotation = sp.Rotation; Scale = sp.Scale; SpriteEffect = sp.SpriteEffect; isActStoped = sp.isActStoped; isEnd = sp.isEnd; isShown = sp.isShown; isColli = sp.isColli; ColliOffset = sp.ColliOffset; ColliRect = sp.ColliRect; Tags = new Dictionary<string, object>(sp.Tags); _prePosition = sp._prePosition; _preRotation = sp._preRotation; MovedVlaue = sp.MovedVlaue; RotatedValue = sp.RotatedValue; isFirstFrame = sp.isFirstFrame; if (sp.Slaves != null) { this.Slaves = new List<ASprite>(); foreach (Sprite slv in sp.Slaves) this.Slaves.Add(slv.Copy()); } if (sp.ActStoreList != null) { this.ActStoreList = new List<Act>(); foreach (Act act in sp.ActStoreList) this.ActStoreList.Add(act.Copy()); this.ActPlayingList = new List<Act>(); foreach (Act act in sp.ActPlayingList) this.ActPlayingList.Add(act.Copy()); } }