Exemple #1
0
        public void AddPlayer(Character @char)
        {
            SendMinimapInfo(@char);
            SendWeather(@char);
            var pos = @char.Position;

            SetAttribute(pos.X, pos.Y, MapAttributes.Stand);
            Players.Add(@char);
            PlayerJoins?.Invoke(@char.Player, new EventArgs());
        }
Exemple #2
0
        public async void AddPlayer(Character @char)
        {
            await @char.Player.Session.SendAsync(new SWeather(Weather));

            var pos = @char.Position;

            SetAttribute(pos.X, pos.Y, MapAttributes.Stand);
            Players.Add(@char);
            PlayerJoins?.Invoke(@char.Player, new EventArgs());
        }