public void AddLight(SpriteLight sl) { sl.shapeID = objectID; sl.lightID = LightID; sl.lightColor = Color.White; LightID++; objectID++; gameLights.Add(sl); }
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); }
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); }