MapServer.GameMap.SendWeatherInfo C# (CSharp) Method

SendWeatherInfo() public method

public SendWeatherInfo ( PlayerObject play ) : void
play PlayerObject
return void
        public void SendWeatherInfo(PlayerObject play)
        {
            //下雪天气-
            //if (obj.type == OBJECTTYPE.PLAYER)
            //{

            //下雪天气
            GameBase.Network.PacketOut outpack = new GameBase.Network.PacketOut();
            outpack.WriteInt16(20);
            outpack.WriteInt16(1110);
            outpack.WriteUInt32(this.GetMapInfo().id);
            outpack.WriteUInt32(this.GetMapInfo().id);

            if (this.GetMapInfo().issnows)
            {
                byte[] data3 = { 0, 0, 32, 0, 128, 0, 18, 0 };
                outpack.WriteBuff(data3);
            }
            else
            {
                outpack.WriteInt32(0);
                outpack.WriteInt32(0);
            }
            play.SendData(outpack.Flush(), true);
            //}
        }