Ejemplo n.º 1
0
        internal void InvokePlayerConnectWorkstation(Player player, SynapseItem item, WorkStation station, out bool allow)
        {
            var ev = new PlayerConnectWorkstationEventArgs
            {
                Player      = player,
                Item        = item,
                WorkStation = station
            };

            PlayerConnectWorkstationEvent?.Invoke(ev);

            allow = ev.Allow;
        }
Ejemplo n.º 2
0
        internal void InvokePlayerStartWorkstation(Player player, WorkStation station, out bool allow)
        {
            var evold = new PlayerConnectWorkstationEventArgs
            {
                Player      = player,
                WorkStation = station
            };

            PlayerConnectWorkstationEvent?.Invoke(evold);

            var ev = new PlayerStartWorkstationEventArgs
            {
                Player      = player,
                WorkStation = station,
                Allow       = evold.Allow
            };

            PlayerStartWorkstationEvent?.Invoke(ev);

            allow = ev.Allow;
        }