T_WolfCurses_WindowManager - Maxwolf/WolfCurses GitHub Wiki

WindowManager Class

Builds up a list of game modes and their states using reflection and attributes. Contains methods to add game modes to running simulation. Can also remove modes and modify them further with states.

Inheritance Hierarchy

System.Object
  WolfCurses.Module
    WolfCurses.WindowManager
Namespace: WolfCurses
Assembly: WolfCurses (in WolfCurses.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public sealed class WindowManager : Module

The WindowManager type exposes the following members.

Constructors

 

Name Description
Public method WindowManager Initializes a new instance of the WindowManager class. Initializes a new instance of the ModuleProduct class.
  Back to Top

Properties

 

Name Description
Public property FocusedWindow References the current active game Windows, or the last attached game Windows in the simulation.
  Back to Top

Methods

 

Name Description
Public method Add Creates and adds the specified game Windows to the simulation if it does not already exist in the list of modes.
Public method Clear Removes every window and form from the simulation and makes it a blank slate. Use with caution, if there is an operation in progress, or waiting for user input this will not respect that and just forcefully destroy everything.
Public method CreateStateFromType Creates and adds the specified type of state to currently active game Windows.
Public method Destroy Fired when the simulation is closing and needs to clear out any data structures that it created so the program can exit cleanly. (Overrides Module.Destroy().)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method OnTick Called when the simulation is ticked by underlying operating system, game engine, or potato. Each of these system ticks is called at unpredictable rates, however if not a system tick that means the simulation has processed enough of them to fire off event for fixed interval that is set in the core simulation by constant in milliseconds. (Overrides Module.OnTick(Boolean, Boolean).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

Extension Methods

 

Name Description
Public Extension Method ToDescriptionAttribute Attempts to grab description attribute from any object. (Defined by AttributeExtensions.)
  Back to Top

Version Information

Wolf Curses

Supported in: 0.1

See Also

Reference

WolfCurses Namespace

⚠️ **GitHub.com Fallback** ⚠️