protected override void ReadPayload(PayloadReader reader, TerrPacketType type)
 {
     CheckForValidType(type, TerrPacketType.Time);
     IsDay = reader.ReadBoolean();
     Time = reader.ReadInt32();
     SunModY = reader.ReadInt16();
     MoonModY = reader.ReadInt16();
 }
        protected override void ReadPayload(PayloadReader reader, TerrPacketType type)
        {
            CheckForValidType(type, TerrPacketType.KillMe);

            PlayerId = reader.ReadByte();
            HitDirection = reader.ReadByte();
            Damage = reader.ReadInt16();
            WasPvP = reader.ReadBoolean();
            DeathText = reader.ReadString();
        }
        protected override void ReadPayload(PayloadReader reader, TerrPacketType type)
        {
            CheckForValidType(type, TerrPacketType.PlayerActive);

            PlayerId = reader.ReadByte();
            Active = reader.ReadBoolean();
        }
        protected override void ReadPayload(PayloadReader reader, TerrPacketType type)
        {
            CheckForValidType(type, TerrPacketType.TogglePvp);

            PlayerId = reader.ReadByte();
            Value = reader.ReadBoolean();
        }
Esempio n. 5
0
        protected override void ReadPayload(PayloadReader reader, TerrPacketType type)
        {
            CheckForValidType(type, TerrPacketType.AnglerQuest);

            Quest = reader.ReadByte();
            Completed = reader.ReadBoolean();
        }