Platformer Pro  2.3.2
A platform game kit for Unity.
PlatformerPro.EventResponderInspector Class Reference
Inheritance diagram for PlatformerPro.EventResponderInspector:

Public Member Functions

override void OnInspectorGUI ()
 Draw the GUI. Draw the GUI. More...
 

Static Public Member Functions

static void RenderAction (object target, EventResponse action)
 Draws an event response action in the inspector. More...
 

Static Public Attributes

static readonly string[] switchOptions = {"ANY", "OFF", "ON"}
 
static readonly string[] CharacterEventTypes = { typeof(Character).Name, typeof(CharacterHealth).Name, typeof(ItemManager).Name, typeof(EquipmentManager).Name, typeof(PowerUpManager).Name }
 

Protected Member Functions

string[] GetEventNamesForType (string typeName)
 Get the names of all events for a given type. More...
 
string[] GetComponentsOnGameObject (GameObject go)
 Gets the type names of all components on a game object. More...
 

Protected Attributes

EventResponder myTarget
 Cached and typed target reference. More...
 
string[] types
 Cached types for target. More...
 
string[] events
 Cached events for type. More...
 
System.Type type
 
System.Reflection.EventInfo eventInfo
 
System.Type parameterType
 

Member Function Documentation

◆ GetComponentsOnGameObject()

string [] PlatformerPro.EventResponderInspector.GetComponentsOnGameObject ( GameObject  go)
protected

Gets the type names of all components on a game object.

Returns
The Components on game object.
Parameters
goGo.

◆ GetEventNamesForType()

string [] PlatformerPro.EventResponderInspector.GetEventNamesForType ( string  typeName)
protected

Get the names of all events for a given type.

Returns
The event names for type.
Parameters
typeType.

◆ OnInspectorGUI()

override void PlatformerPro.EventResponderInspector.OnInspectorGUI ( )

Draw the GUI. Draw the GUI.

◆ RenderAction()

static void PlatformerPro.EventResponderInspector.RenderAction ( object  target,
EventResponse  action 
)
static

Draws an event response action in the inspector.

Parameters
actionAction.

Member Data Documentation

◆ CharacterEventTypes

readonly string [] PlatformerPro.EventResponderInspector.CharacterEventTypes = { typeof(Character).Name, typeof(CharacterHealth).Name, typeof(ItemManager).Name, typeof(EquipmentManager).Name, typeof(PowerUpManager).Name }
static

◆ eventInfo

System.Reflection.EventInfo PlatformerPro.EventResponderInspector.eventInfo
protected

◆ events

string [] PlatformerPro.EventResponderInspector.events
protected

Cached events for type.

◆ myTarget

EventResponder PlatformerPro.EventResponderInspector.myTarget
protected

Cached and typed target reference.

◆ parameterType

System.Type PlatformerPro.EventResponderInspector.parameterType
protected

◆ switchOptions

readonly string [] PlatformerPro.EventResponderInspector.switchOptions = {"ANY", "OFF", "ON"}
static

◆ type

System.Type PlatformerPro.EventResponderInspector.type
protected

◆ types

string [] PlatformerPro.EventResponderInspector.types
protected

Cached types for target.


The documentation for this class was generated from the following file: