/// <summary> /// Creates a new instance of the text wrapper. /// </summary> /// <param name="State">State of text to be drawn.</param> /// <param name="FilePath">File path of the spritefont object.</param> /// <param name="Text">Text to be drawn on the screen.</param> /// <param name="Width">Width in pixels of the box containing the text.</param> public TextWrapper(WrapperState State, string FilePath, string Text, int Width) { this.State = State; this.FilePath = FilePath; this.text = Text; this.Width = Width; }
/// <summary> /// Makes a new AnimationWrapper. /// </summary> /// <param name="State">State of each internal frame to be drawn.</param> /// <param name="FilePath">File Path of the SpriteSheet.</param> /// <param name="FrameHeight">Frame Height in pixels.</param> /// <param name="FrameWidth">Frame Width in pixels.</param> /// <param name="TicksBetweenFrames">Ticks required to change frames.</param> public AnimationWrapper(WrapperState State, string FilePath, int FrameHeight, int FrameWidth, int TicksBetweenFrames) { this.State = State; this.FilePath = FilePath; this.FrameHeight = FrameHeight; this.FrameWidth = FrameWidth; this.TicksBetweenFrames = TicksBetweenFrames; }
/// <summary> /// Creates a new instance of the texture wrapper. /// </summary> /// <param name="State">State of the texture.</param> /// <param name="FilePath">File path of the image file.</param> public TextureWrapper(WrapperState State, string FilePath) { this.State = State; this.FilePath = FilePath; }