protected override void EncodePayload() { this.WriteBool(this.MustAccept); this.WriteBool(this.UnknownBool); this.WriteShort((short)this.BehaviourPackEntries.Length); for (int i = 0; i < this.BehaviourPackEntries.Length; ++i) { IResourcePack entry = this.BehaviourPackEntries[i]; this.WriteString(entry.GetPackId()); this.WriteString(entry.GetPackVersion()); this.WriteLLong(entry.GetPackSize()); this.WriteString(""); //TODO: this.WriteString(""); //TODO: this.WriteString(""); //TODO: } this.WriteShort((short)this.ResourcePackEntries.Length); for (int i = 0; i < this.ResourcePackEntries.Length; ++i) { IResourcePack entry = this.ResourcePackEntries[i]; this.WriteString(entry.GetPackId()); this.WriteString(entry.GetPackVersion()); this.WriteLLong(entry.GetPackSize()); this.WriteString(""); //TODO: this.WriteString(""); //TODO: this.WriteString(""); //TODO: } }
protected override void EncodePayload() { this.WriteBool(this.MustAccept); this.WriteShort((short)this.BehaviourPackEntries.Length); for (int i = 0; i < this.BehaviourPackEntries.Length; ++i) { IResourcePack entry = this.BehaviourPackEntries[i]; this.WriteString(entry.GetPackId()); this.WriteString(entry.GetPackVersion()); this.WriteString(""); } this.WriteShort((short)this.ResourcePackEntries.Length); for (int i = 0; i < this.ResourcePackEntries.Length; ++i) { IResourcePack entry = this.ResourcePackEntries[i]; this.WriteString(entry.GetPackId()); this.WriteString(entry.GetPackVersion()); this.WriteString(""); } this.WriteBool(this.IsExperimental); }