internal void SendWeatherSync(Session Player) { Packet p = new Packet() { _opcode = Packet.Opcode.SMSG_WEATHER_SYNC }; p.Push(_weatherManager.Current); Player.Write(p); }
internal void SendTimeSync(Session Player) { Packet p = new Packet() { _opcode = Packet.Opcode.SMSG_TIME_SYNC }; p.Push(_timeManager.Hour); p.Push(_timeManager.Day); p.Push(_timeManager.Month); Player.Write(p); }
public void Add(Session Player) { lock (_sessions) { _sessions.Enqueue(Player); } Player.SetWorld(this); Packet packet = new Packet() { _opcode = Packet.Opcode.SMSG_SHARD_HANDSHAKE }; packet.Push((uint)1); Player.Write(packet); SendTimeSync(Player); SendWeatherSync(Player); }