Weather

Weather Direction Diagram:
This is a simple diagram that I made to help you understand weather and its possible directions:

Weather Parameters:
code Intensity: 1-999 Direction: 30 degrees to -30 degrees code ||

Weather Packet:
This is the weather packet explained: code format="csharp" using System; using System.Collections.Generic; using System.Linq; using System.Text; using Conquer_Online_Server.ServerBase;

namespace Conquer_Online_Server.Network.GamePackets {   public class Weather : Writer, Interfaces.IPacket {       public const uint None = 1, Rain = 2, Snow = 3, RainWind = 4, AutumnLeaves = 5, CherryBlossomPetals = 7, CherryBlossomPetalsWind = 8, BlowingCotton = 9, Atoms = 10;

private byte[] Buffer; public Weather(uint Type, uint Intensity, uint Appearance, uint Direction) {           Buffer = new byte[28]; WriteUInt16(20, 0, Buffer); // Number of offsets the packet is...           WriteUInt16(0x3f8, 2, Buffer); // The packet id... WriteUInt32((byte)Type, 4, Buffer); // first offset at 4 WriteUInt32(Intensity, 8, Buffer); // then add the Uint32 (4 offsets) gives you 8 WriteUInt32(Direction, 12, Buffer); // and so on... WriteUInt32(Appearance, 16, Buffer); // add 4 and you get 16 // Add the remaining 4 and you get the packet's number of offsets. }       public byte[] ToArray {           return Buffer; }       public void Deserialize(byte[] buffer) {           Buffer = buffer; }       public void Send(Client.GameState client) {           client.Send(Buffer); foreach (Client.GameState C in Kernel.GamePool.Values) {               C.Send(Buffer); }       }    } } code