public bool Register(AionEventKeyHandler hFunction, Keys hKey, KeysModifier hModifier = KeysModifier.None) { if (PlayerInput._hPlayerKey != null) { return(PlayerInput._hPlayerKey.Register(hFunction, hKey, hModifier)); } return(false); }
public bool Register(AionEventKeyHandler hFunction, Keys hKey, KeysModifier hModifier = KeysModifier.None) { return(this._Register(new ArrayList() { (object)hFunction, (object)hKey, (object)hModifier, (object)true })); }
public static bool Register(AionEventKeyHandler hFunction, Keys hKey, KeysModifier hModifier = KeysModifier.None) { // ISSUE: reference to a compiler-generated field if (Global.OnGlobalRegister != null) { // ISSUE: reference to a compiler-generated field return(Global.OnGlobalRegister(hFunction, hKey, hModifier)); } return(false); }
public static bool RegisterCompiled(AionEventKeyHandler hFunction, Keys hKey, KeysModifier hModifier = KeysModifier.None) { try { if (Scripting._hCompiled == null || Scripting._hHotKeyCompiled.ContainsKey(hFunction) || !Game.PlayerInput.Register(hFunction, hKey, hModifier)) { return(false); } ArrayList arrayList = new ArrayList() { (object)hKey, (object)hModifier }; Scripting._hHotKeyCompiled[hFunction] = arrayList; return(true); } catch (Exception ex) { return(false); } }