Beispiel #1
0
        public EffectGameComponent AddEffect(String sheetName, Vector2 position)
        {
            EffectGameComponent effect = new EffectGameComponent(this, sheetName);

            effect.Position = position;
            Components.Add(effect);
            return(effect);
        }
Beispiel #2
0
        public EffectGameComponent AddEffect(String sheetName, Vector2 position, double secondsPerFrame, int maxLoops)
        {
            EffectGameComponent effect = AddEffect(sheetName, position);

            effect.SecondsPerFrame = secondsPerFrame;
            effect.MaxLoops        = maxLoops;
            return(effect);
        }
Beispiel #3
0
 public EffectGameComponent AddEffect(String sheetName, Vector2 position)
 {
     EffectGameComponent effect = new EffectGameComponent(this, sheetName);
     effect.Position = position;
     Components.Add(effect);
     return effect;
 }