Esempio n. 1
0
        internal void InvokePlayerCuffTargetEvent(Player target, Player cuffer, out bool allow)
        {
            var ev = new PlayerCuffTargetEventArgs
            {
                Cuffer = cuffer,
                Target = target,
                Allow  = true,
            };

            PlayerCuffTargetEvent?.Invoke(ev);

            allow = ev.Allow;
        }
Esempio n. 2
0
        internal void InvokePlayerCuffTargetEvent(Player target, Player cuffer, SynapseItem disarmer, ref bool allow)
        {
            var ev = new PlayerCuffTargetEventArgs
            {
                Cuffer   = cuffer,
                Disarmer = disarmer,
                Target   = target,
                Allow    = allow
            };

            PlayerCuffTargetEvent?.Invoke(ev);

            allow = ev.Allow;
        }