Word Game Builder 2.0.1f2
Reference Manual
|
This class is responsible for all game logic. More...
Public Member Functions | |
void | OnAgentFindWords () |
This callback fires when the agent has finished searching for valid words. More... | |
void | OnPlayerWordResult () |
This callback fires after the player submits a word and it has been checked by the word checker. More... | |
void | OnTileDistribution () |
This callback fires whenever tiles are distributed by the tile pool. More... | |
void | OnWildcardTileSelect () |
This callback fires when a wildcard tile receives input. More... | |
Public Member Functions inherited from WGBBase | |
T | GetComponentFromInterface< T > () |
Gets a component from its interface type. More... | |
T | GetComponentInChildrenFromInterface< T > () |
Gets a component from its interface type, searching through this GameObject and all children. More... | |
T[] | GetComponentsFromInterface< T > () |
Gets all components from its interface type. More... | |
T[] | GetComponentsInChildrenFromInterface< T > () |
Gets all components from its interface type, searching through this GameObject and all children. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from WGBBase | |
static T | FindObjectOfTypeFromInterface< T > () |
Finds the first object of interface type T. More... | |
static T[] | FindObjectsOfTypeFromInterface< T > () |
Finds all objects of interface type T. More... | |
static T | InstantiateFromInterface< T > (T original) |
Instantiate a GameObject from interface type T. More... | |
static T | InstantiateFromInterface< T > (T original, Vector3 position, Quaternion rotation) |
Instantiate a GameObject from interface type T at the specified position and rotation. More... | |
static void | Log (object message, string prefix, string type) |
Logs a prefixed message. More... | |
static void | Log (object message, string prefix, string type, Object context) |
Logs a prefixed message, with context. More... | |
static void | LogError (object message, string prefix, string type) |
Logs a prefixed erorr. More... | |
static void | LogError (object message, string prefix, string type, Object context) |
Logs a prefixed exception, with context. More... | |
static void | LogException (System.Exception ex) |
Logs an exception. More... | |
static void | LogException (System.Exception ex, Object context) |
Logs an exception, with context. More... | |
static void | LogWarning (object message, string prefix, string type) |
Logs a prefixed warning. More... | |
static void | LogWarning (object message, string prefix, string type, Object context) |
Logs a prefixed warning, with context. More... | |
Properties inherited from WGBBase | |
object | userData [get, set] |
Additional user data associated with this object. This is unused by default. More... | |
This class is responsible for all game logic.
Make sure to take a look at this script! It has been thoroughly commented to help users understand how to use Word Game Builder. This example has been written to use all of the interface classes (for compatibility with user-created components). Alternatively, game logic can be written using the default components themselves.
|
inline |
This callback fires when the agent has finished searching for valid words.
This method is assigned in the Word Game Agent's inspector. Callbacks like these can also be assigned dynamically at runtime, and anonymous delegates are supported as well.
|
inline |
This callback fires after the player submits a word and it has been checked by the word checker.
This method is assigned in the player's inspector. Callbacks like these can also be assigned dynamically at runtime, and anonymous delegates are supported as well.
|
inline |
This callback fires whenever tiles are distributed by the tile pool.
This method is assigned to the tile pool dynamically at runtime. In some cases (with permanent scene objects usually), it is easier to assign callbacks through the inspector.
|
inline |
This callback fires when a wildcard tile receives input.
This method is assigned in the Wildcard Tile Manager's inspector. Callbacks like these can also be assigned dynamically at runtime, and anonymous delegates are supported as well.