Exemplo n.º 1
0
            internal void Invoke079SpeakerInteract(
                Player player,
                float energyNeeded,
                Scp079EventMisc.InteractionResult intendedResult,
                out Scp079EventMisc.InteractionResult actualResult
                )
            {
                var ev = new Scp079SpeakerInteractEventArgs
                {
                    Scp079       = player,
                    Result       = intendedResult,
                    EnergyNeeded = energyNeeded
                };

                SpeakerInteract?.Invoke(ev);

                actualResult = ev.Result;
            }
Exemplo n.º 2
0
            internal void Invoke079ElevatorUse(
                Player player,
                float energyNeeded,
                Elevator elevator,
                Scp079EventMisc.InteractionResult intendedResult,
                out Scp079EventMisc.InteractionResult actualResult
                )
            {
                var ev = new Scp079ElevatorInteractEventArgs
                {
                    Scp079       = player,
                    Result       = intendedResult,
                    EnergyNeeded = energyNeeded,
                    Elevator     = elevator
                };

                ElevatorInteract?.Invoke(ev);

                actualResult = ev.Result;
            }
Exemplo n.º 3
0
            internal void Invoke079TeslaInteract(
                Player player,
                float energyNeeded,
                Room room,
                Tesla tesla,
                Scp079EventMisc.InteractionResult intendedResult,
                out Scp079EventMisc.InteractionResult actualResult
                )
            {
                var ev = new Scp079TeslaInteractEventArgs
                {
                    Scp079       = player,
                    Result       = intendedResult,
                    EnergyNeeded = energyNeeded,
                    Room         = room,
                    Tesla        = tesla
                };

                TeslaInteract?.Invoke(ev);

                actualResult = ev.Result;
            }
Exemplo n.º 4
0
            internal void Invoke079RoomLockdown(
                Player player,
                float energyNeeded,
                Room room,
                ref bool lightsOut,
                Scp079EventMisc.InteractionResult intendedResult,
                out Scp079EventMisc.InteractionResult actualResult
                )
            {
                var ev = new Scp079RoomLockdownEventArgs
                {
                    Scp079       = player,
                    Result       = intendedResult,
                    EnergyNeeded = energyNeeded,
                    Room         = room,
                    LightsOut    = lightsOut
                };

                RoomLockdown?.Invoke(ev);

                actualResult = ev.Result;
            }
Exemplo n.º 5
0
            internal void Invoke079DoorInteract(
                Player player,
                Scp079EventMisc.DoorAction action,
                Scp079EventMisc.InteractionResult intendedResult,
                float energyNeeded,
                Door door,
                out Scp079EventMisc.InteractionResult actualResult
                )
            {
                var ev = new Scp079DoorInteractEventArgs
                {
                    Scp079       = player,
                    Action       = action,
                    EnergyNeeded = energyNeeded,
                    Result       = intendedResult,
                    Door         = door
                };

                DoorInteract?.Invoke(ev);

                actualResult = ev.Result;
            }