C# Class FlatRedBall.Instructions.StaticMethodInstruction

Instruction which calls a Static class' method.
This class must be used instead of FlatRedBall.Instructions.MethodInstruction because MethodInstruction takes a reference to an instance of the object containing the method to call. If the object is a static class then the compiler will complain about static objects being used as arguments to methods.
Inheritance: Instruction
显示文件 Open project: vchelaru/FlatRedBall

Public Methods

Method Description
Execute ( ) : void
ExecuteOn ( object target ) : void
StaticMethodInstruction ( MethodInfo methodInfo, object arguments, double timeToExecute ) : System
StaticMethodInstruction ( Type type, string methodToCall, object arguments, double timeToExecute ) : System

Method Details

Execute() public method

public Execute ( ) : void
return void

ExecuteOn() public method

public ExecuteOn ( object target ) : void
target object
return void

StaticMethodInstruction() public method

public StaticMethodInstruction ( MethodInfo methodInfo, object arguments, double timeToExecute ) : System
methodInfo System.Reflection.MethodInfo
arguments object
timeToExecute double
return System

StaticMethodInstruction() public method

public StaticMethodInstruction ( Type type, string methodToCall, object arguments, double timeToExecute ) : System
type System.Type
methodToCall string
arguments object
timeToExecute double
return System