示例#1
0
文件: MapInfo.cs 项目: fos83/MuEmu
        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());
        }
示例#2
0
文件: MapInfo.cs 项目: R3DIANCE/MuEmu
        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());
        }