Ejemplo n.º 1
0
        private void OnTellWater_Global(PlayerLife life)
        {
            var player = GetUnturnedPlayer(life.player) !;
            var @event = new UnturnedPlayerWaterUpdatedEvent(player, life.water);

            Emit(@event);
        }
Ejemplo n.º 2
0
        private void Events_OnWaterUpdated(Player nativePlayer, byte water)
        {
            var player = GetUnturnedPlayer(nativePlayer) !;
            var @event = new UnturnedPlayerWaterUpdatedEvent(player, water);

            Emit(@event);
        }