Example #1
0
        public Sprite2D(Vector2 Position, Vector2 Scale, Sprite2D reference, string Tag)
        {
            this.Position = Position;
            this.Scale    = Scale;
            this.Tag      = Tag;


            Sprite = reference.Sprite;

            Log.Info($"[SHAPE2D]({Tag}) - Has been registered! ");
            ExpressedEngine.RegisterSprite(this);
        }
Example #2
0
 public static void UnRegisterSprite(Sprite2D sprite) => AllSprites.Remove(sprite);
Example #3
0
 public static void RegisterSprite(Sprite2D sprite) => AllSprites.Add(sprite);