C# Class MilkShakeFramework.Components.Scripting.MilkHooks

MilkHooks is a LUA based event system It has two Librarys* one for standard events and the other one for custom events. *Dictionarys :]
Datei anzeigen Open project: lucas-jones/MilkShake-old

Public Properties

Property Type Description
debugHooks bool

Public Methods

Method Description
ClearEvents ( ) : void

Clears all Events from the Event Library (Events & Custom Events)

RemoveHook ( string _Event, LuaFunction _Function ) : void
StringResultEvent ( string _Event ) : string
TriggerEvent ( Object _Object, string _Event ) : void
TriggerEvent ( string _Event ) : void

Private Methods

Method Description
AddCustomHook ( string _Event, LuaFunction _Function ) : void
AddHook ( string _Event, LuaFunction _Function ) : void
AddObjectHook ( string _Object, string _Event, LuaFunction _Function ) : void
TriggerCustomDataEvent ( string _Event, string _Data ) : void
TriggerCustomEvent ( string _Event ) : void

Method Details

ClearEvents() public static method

Clears all Events from the Event Library (Events & Custom Events)
public static ClearEvents ( ) : void
return void

RemoveHook() public static method

public static RemoveHook ( string _Event, LuaFunction _Function ) : void
_Event string
_Function LuaInterface.LuaFunction
return void

StringResultEvent() public static method

public static StringResultEvent ( string _Event ) : string
_Event string
return string

TriggerEvent() public static method

public static TriggerEvent ( Object _Object, string _Event ) : void
_Object Object
_Event string
return void

TriggerEvent() public static method

public static TriggerEvent ( string _Event ) : void
_Event string
return void

Property Details

debugHooks public_oe static_oe property

public static bool debugHooks
return bool