Humanoid Control for Unity v4
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Passer.FunctionCall Class Reference

Description

A function which can be called.

Classes

class  Parameter
 Function Parameter. More...
 

Public Types

enum  ParameterType {
  Void , Float , Int , Bool ,
  Vector3 , GameObject , Rigidbody , String
}
 
enum  Networking { No , Yes }
 For future use...
 

Public Member Functions

 FunctionCall (GameObject targetGameObject, string methodName)
 Creates a new FunctionCall.
 
Parameter AddParameter ()
 Adds a new Parameter to the function call.
 
virtual void Execute (Networking networking=Networking.No)
 Execute the void function call.
 
void Execute (bool value, Networking networking=Networking.No)
 Execute a function call with a boolean parameter.
 
void Execute (int value)
 Call the function with an integer parameter.
 
virtual void Execute (float value)
 Call the function with a float parameter.
 
void Execute (Vector3 value)
 Call the function with a Vector3 parameter.
 
void Execute (GameObject value)
 Call the funtion with a GameObject parameter.
 
void ExecuteString (string s, bool value)
 Call the function with a string and a boolean parameter.
 
void ExecuteString (string s, float value)
 Call the function with a string and a float parameter.
 
void ExecuteString (string s, int value)
 Call the function with a string and a integer parameter.
 
void Execute (string value, bool networkSync=false)
 
void CreateTargetMethodString (UnityEngine.Object target, string methodName, bool fromEvent, string stringConstant)
 

Static Public Member Functions

static Type ToSystemType (ParameterType parameterType)
 
static void Execute (GameObject target, string methodName)
 
static void Execute (GameObject target, string methodName, bool boolValue)
 
static void Execute (GameObject target, string methodName, float floatValue)
 
static GameObject GetGameObject (UnityEngine.Object obj)
 Gets the GameObject for the Object.
 
static void Execute (GameObject target, string methodName, string stringValue)
 

Public Attributes

GameObject targetGameObject
 The target GameObject on which the function should be called.
 
string methodName
 The name of the method to call on the GameObject.
 
Parameter[] parameters
 For future use...
 

Protected Member Functions

delegate void Method ()
 
delegate void MethodBool (bool value)
 
delegate void MethodFloat (float value)
 
delegate void MethodInt (int value)
 
delegate void MethodVector3 (Vector3 value)
 
delegate void MethodGameObject (GameObject value)
 
delegate void MethodRigidbody (Rigidbody value)
 
delegate void MethodStringBool (string s, bool value)
 
delegate void MethodStringFloat (string s, float value)
 
delegate void MethodStringInt (string s, int value)
 
void Execute (Rigidbody value)
 Call the function with a Rigidbody parameter.
 
virtual void GetTargetMethod ()
 
void CreateAnimationParameterMethod (GameObject target, string fullMethodName)
 
void CreateTargetMethod (UnityEngine.Object target, string methodName, bool fromEvent, bool boolConstant)
 
void CreateTargetMethod (UnityEngine.Object target, string methodName, bool fromEvent, int intConstant)
 
void CreateTargetMethod (UnityEngine.Object target, string methodName, bool fromEvent, float floatConstant)
 
void CreateTargetMethod (UnityEngine.Object target, string methodName, bool fromEvent, Vector3 vectorConstant)
 
void CreateTargetMethod (UnityEngine.Object target, string methodName, bool fromEvent, GameObject gameObjectConstant)
 
void CreateTargetMethod (UnityEngine.Object target, string methodName, bool fromEvent, Rigidbody rigidbodyConstant)
 
delegate void MethodString (string value)
 

Static Protected Member Functions

static UnityEngine.Object GetComponent (GameObject target, string fullMethodName)
 
static UnityEngine.Object GetComponent (GameObject target, string fullMethodName, out string methodName)
 
static Method CreateMethod (GameObject target, string fullMethodName)
 
static Method CreateMethod (UnityEngine.Object target, string methodName)
 
static MethodBool CreateMethod (GameObject target, string fullMethodName, bool boolConstant)
 
static MethodBool CreateMethodBool (UnityEngine.Object target, string methodName)
 
static MethodFloat CreateMethodFloat (UnityEngine.Object target, string methodName)
 
static MethodString CreateMethodString (UnityEngine.Object target, string methodName)
 

Protected Attributes

INetworkObject networkObject
 
Delegate targetDelegate
 

Constructor & Destructor Documentation

◆ FunctionCall()

Passer.FunctionCall.FunctionCall ( GameObject  targetGameObject,
string  methodName 
)

Creates a new FunctionCall.

Parameters
targetGameObjectThe GameObject on which the functioncall is executed
methodNameThe full method name: component/methodName

Member Function Documentation

◆ AddParameter()

Parameter Passer.FunctionCall.AddParameter ( )

Adds a new Parameter to the function call.

Returns
The new Parameter

◆ Execute() [1/7]

virtual void Passer.FunctionCall.Execute ( Networking  networking = Networking::No)
virtual

Execute the void function call.

Parameters
networkingFor future use...

◆ Execute() [2/7]

void Passer.FunctionCall.Execute ( bool  value,
Networking  networking = Networking::No 
)

Execute a function call with a boolean parameter.

Parameters
valueThe boolean value to pass to the function
networkingFor future use...

◆ Execute() [3/7]

void Passer.FunctionCall.Execute ( int  value)

Call the function with an integer parameter.

Parameters
valueThe integer value to pass to the function

◆ Execute() [4/7]

virtual void Passer.FunctionCall.Execute ( float  value)
virtual

Call the function with a float parameter.

Parameters
valueThe float value to pass to the function

◆ Execute() [5/7]

void Passer.FunctionCall.Execute ( Vector3  value)

Call the function with a Vector3 parameter.

Parameters
valueThe Vector3 value to pass to the function

◆ Execute() [6/7]

void Passer.FunctionCall.Execute ( GameObject  value)

Call the funtion with a GameObject parameter.

Parameters
valueThe GameObject value to pass to the function

◆ Execute() [7/7]

void Passer.FunctionCall.Execute ( Rigidbody  value)
protected

Call the function with a Rigidbody parameter.

Parameters
valueThe Rigidbody value to pass to the function

◆ ExecuteString() [1/3]

void Passer.FunctionCall.ExecuteString ( string  s,
bool  value 
)

Call the function with a string and a boolean parameter.

Parameters
sThe string value to pass to the function as the first parameter
valueThe boolean value to pass to the function as the second parameter

◆ ExecuteString() [2/3]

void Passer.FunctionCall.ExecuteString ( string  s,
float  value 
)

Call the function with a string and a float parameter.

Parameters
sThe string value to pass to the function as the first parameter
valueThe float value to pass to the function as the second parameter

◆ ExecuteString() [3/3]

void Passer.FunctionCall.ExecuteString ( string  s,
int  value 
)

Call the function with a string and a integer parameter.

Parameters
sThe string value to pass to the function as the first parameter
valueThe integer value to pass to the function as the second parameter

◆ GetGameObject()

static GameObject Passer.FunctionCall.GetGameObject ( UnityEngine::Object  obj)
static

Gets the GameObject for the Object.

Parameters
obj
Returns

Member Data Documentation

◆ methodName

string Passer.FunctionCall.methodName

The name of the method to call on the GameObject.

The format of this string is <fully qualified component type>.<function name>


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