T_WolfCurses_WindowManager - Maxwolf/WolfCurses GitHub Wiki
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.
System.Object
WolfCurses.Module
WolfCurses.WindowManager
Namespace: WolfCurses
Assembly: WolfCurses (in WolfCurses.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public sealed class WindowManager : Module
The WindowManager type exposes the following members.
Name | Description | |
---|---|---|
![]() |
WindowManager | Initializes a new instance of the WindowManager class. Initializes a new instance of the ModuleProduct class. |
Name | Description | |
---|---|---|
![]() |
FocusedWindow | References the current active game Windows, or the last attached game Windows in the simulation. |
Name | Description | |
---|---|---|
![]() |
Add | Creates and adds the specified game Windows to the simulation if it does not already exist in the list of modes. |
![]() |
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. |
![]() |
CreateStateFromType | Creates and adds the specified type of state to currently active game Windows. |
![]() |
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().) |
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
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).) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() |
ToDescriptionAttribute | Attempts to grab description attribute from any object. (Defined by AttributeExtensions.) |
Supported in: 0.1