/// <summary> /// Constructor. /// </summary> /// <param name="owner"><see cref="Owner"/></param> /// <param name="useId"><see cref="UseId"/></param> /// <param name="lifetime">Lifetime, in milliseconds.</param> internal Elapser(object owner, Enums.ElapserUse useId, double lifetime) { _timestamp = DateTime.Now; _lifetime = lifetime; UseId = useId; Owner = owner; AddOrReplaceInInstances(); }
/// <summary> /// Constructor. /// </summary> /// <param name="owner"><see cref="Owner"/></param> /// <param name="useId"><see cref="UseId"/></param> internal Elapser(object owner, Enums.ElapserUse useId) : this(owner, useId, double.PositiveInfinity) { }
/// <summary> /// Creates an animated image instance with mosaic display. /// </summary> /// <param name="owner"><see cref="_owner"/></param> /// <param name="imageName"><see cref="_imageName"/></param> /// <param name="animationElapser"><see cref="_animationElapser"/></param> /// <param name="elapserNextStep"><see cref="_elapserNextStep"/></param> /// <returns><see cref="DefaultRender"/></returns> internal static DefaultRender AnimatedImageWithMosaic(Sprites.Sprite owner, string imageName, Enums.ElapserUse animationElapser, double elapserNextStep) { return(new DefaultRender(owner, null, imageName, true, animationElapser, elapserNextStep)); }