public void AddLight(SpriteLight sl)
 {
     sl.shapeID    = objectID;
     sl.lightID    = LightID;
     sl.lightColor = Color.White;
     LightID++;
     objectID++;
     gameLights.Add(sl);
 }
Пример #2
0
        static public SpriteLight convertFromBase(BaseSprite bs)
        {
            SpriteLight sl = (SpriteLight)bs;

            sl.spriteGameSize = bs.spriteGameSize;
            sl.baseAnimations = new List <ShapeAnimation>(bs.baseAnimations);
            sl.shapeName      = bs.shapeName;
            return(sl);
        }
Пример #3
0
        public SpriteLight Clone()
        {
            SpriteLight temp = new SpriteLight();
            var         bs   = (BaseSprite)this.ShallowCopy();

            temp              = convertFromBase(bs);
            temp.lightMask    = lightMask.Clone();
            temp.lightOffAnim = lightOffAnim.Clone();
            return(temp);
        }