public void SerializeRope(Rope r) { if (r != null) { this.ropeData.Write(true); this.ropeData.Write(CompressedVec2Binding.GetCompressedVec2(r.attach2Point)); this.SerializeRope(r.attach2 as Rope); } else { this.ropeData.Write(false); } }
public override object GetNetValue() => (object)CompressedVec2Binding.GetCompressedVec2((Vec2)this.value, this._range);