public override void In(ByteBuffer buffer) { if (this.InResponseStatus(buffer) == true) { this.gameObjectData = new NetGameObjectData[buffer.ReadInt32()]; for (int i = 0; i < this.gameObjectData.Length; i++) { this.gameObjectData[i] = NetGameObjectData.Deserialize(buffer); } } }
public override void Out(ByteBuffer buffer) { if (this.OutResponseStatus(buffer) == true) { buffer.Append(this.serverGameObjects.Count); for (int i = 0; i < this.serverGameObjects.Count; i++) { NetGameObjectData.Serialize(buffer, this.serverGameObjects[i]); } } }