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()); }
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()); }