Skip to content

T_WolfCurses_SceneGraph

Maxwolf edited this page Jan 2, 2016 · 2 revisions

SceneGraph Class

Provides base functionality for rendering out the simulation state via text user interface (TUI). This class has no idea about how other modules work and only serves to query them for string data which will be compiled into a console only view of the simulation which is intended to be the lowest level of visualization but theoretically anything could be a renderer for the simulation.

Inheritance Hierarchy

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

Syntax

C#

public class SceneGraph : Module

The SceneGraph type exposes the following members.

Constructors

 

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

Methods

 

Name Description
Public method Clear Removes any and all data from the text user interface renderer.
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.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (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.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (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

Events

 

Name Description
Public event ScreenBufferDirtyEvent Fired when the screen back buffer has changed from what is currently being shown, this forces a redraw.
  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

Clone this wiki locally