public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, NestedComponentData _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { { global::Improbable.Gdk.Tests.TypeName_Internal.Write(_pool, _data.nestedType, global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 1)); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, PositionData _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { { global::Improbable.Coordinates_Internal.Write(_pool, _data.coords, global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 1)); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, RelativeBoxConstraint _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { { global::Improbable.EdgeLength_Internal.Write(_pool, _data.edgeLength, global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 1)); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, RelativeCylinderConstraint _data, global::Improbable.Worker.CInterop.SchemaObject _obj) { { _obj.AddDouble(1, _data.radius); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, PlayerClientData _data, global::Improbable.Worker.CInterop.SchemaObject _obj) { { global::Improbable.Restricted.PlayerIdentity_Internal.Write(_pool, _data.playerIdentity, _obj.AddObject(1)); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, MetadataData _data, global::Improbable.Worker.CInterop.SchemaObject _obj) { { _obj.AddString(1, _data.entityType); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, Other0 _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { { global::Improbable.Worker.Internal.Pbio.AddInt32(_obj, 1, _data.foo); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, ExhaustiveSingularData _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { { global::Improbable.Worker.Internal.Pbio.AddBool(_obj, 1, (byte)(_data.field1 ? 1 : 0)); } { global::Improbable.Worker.Internal.Pbio.AddFloat(_obj, 2, _data.field2); } { global::Improbable.Worker.Internal.Pbio.AddInt32(_obj, 4, _data.field4); } { global::Improbable.Worker.Internal.Pbio.AddInt64(_obj, 5, _data.field5); } { global::Improbable.Worker.Internal.Pbio.AddDouble(_obj, 6, _data.field6); } { if (_data.field7 != null) { var _buffer = global::System.Text.Encoding.UTF8.GetBytes(_data.field7); global::Improbable.Worker.Internal.Pbio.AddBytes(_obj, 7, (byte *)_pool.Pin(_buffer), (uint)_buffer.Length); } else { global::Improbable.Worker.Internal.Pbio.AddBytes(_obj, 7, null, 0); } } { global::Improbable.Worker.Internal.Pbio.AddUint32(_obj, 8, _data.field8); } { global::Improbable.Worker.Internal.Pbio.AddUint64(_obj, 9, _data.field9); } { global::Improbable.Worker.Internal.Pbio.AddSint32(_obj, 10, _data.field10); } { global::Improbable.Worker.Internal.Pbio.AddSint64(_obj, 11, _data.field11); } { global::Improbable.Worker.Internal.Pbio.AddFixed32(_obj, 12, _data.field12); } { global::Improbable.Worker.Internal.Pbio.AddFixed64(_obj, 13, _data.field13); } { global::Improbable.Worker.Internal.Pbio.AddSfixed32(_obj, 14, _data.field14); } { global::Improbable.Worker.Internal.Pbio.AddSfixed64(_obj, 15, _data.field15); } { global::Improbable.Worker.Internal.Pbio.AddInt64(_obj, 16, _data.field16.Id); } { global::Improbable.Gdk.Tests.SomeType_Internal.Write(_pool, _data.field17, global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 17)); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, RelativeBoxConstraint _data, global::Improbable.Worker.CInterop.SchemaObject _obj) { { global::Improbable.EdgeLength_Internal.Write(_pool, _data.edgeLength, _obj.AddObject(1)); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, IsAliveData _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { { global::Improbable.Worker.Internal.Pbio.AddBool(_obj, 1, (byte)(_data.isAlive ? 1 : 0)); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, ExhaustiveOptionalData _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { if (_data.field2.HasValue) { global::Improbable.Worker.Internal.Pbio.AddFloat(_obj, 2, _data.field2.Value); } if (_data.field4.HasValue) { global::Improbable.Worker.Internal.Pbio.AddInt32(_obj, 4, _data.field4.Value); } if (_data.field5.HasValue) { global::Improbable.Worker.Internal.Pbio.AddInt64(_obj, 5, _data.field5.Value); } if (_data.field6.HasValue) { global::Improbable.Worker.Internal.Pbio.AddDouble(_obj, 6, _data.field6.Value); } if (_data.field8.HasValue) { global::Improbable.Worker.Internal.Pbio.AddUint32(_obj, 8, _data.field8.Value); } if (_data.field9.HasValue) { global::Improbable.Worker.Internal.Pbio.AddUint64(_obj, 9, _data.field9.Value); } if (_data.field10.HasValue) { global::Improbable.Worker.Internal.Pbio.AddSint32(_obj, 10, _data.field10.Value); } if (_data.field11.HasValue) { global::Improbable.Worker.Internal.Pbio.AddSint64(_obj, 11, _data.field11.Value); } if (_data.field12.HasValue) { global::Improbable.Worker.Internal.Pbio.AddFixed32(_obj, 12, _data.field12.Value); } if (_data.field13.HasValue) { global::Improbable.Worker.Internal.Pbio.AddFixed64(_obj, 13, _data.field13.Value); } if (_data.field14.HasValue) { global::Improbable.Worker.Internal.Pbio.AddSfixed32(_obj, 14, _data.field14.Value); } if (_data.field15.HasValue) { global::Improbable.Worker.Internal.Pbio.AddSfixed64(_obj, 15, _data.field15.Value); } if (_data.field16.HasValue) { global::Improbable.Worker.Internal.Pbio.AddInt64(_obj, 16, _data.field16.Value.Id); } if (_data.field17.HasValue) { global::Improbable.Gdk.Tests.SomeType_Internal.Write(_pool, _data.field17.Value, global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 17)); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, PositionData _data, global::Improbable.Worker.CInterop.SchemaObject _obj) { { global::Improbable.Coordinates_Internal.Write(_pool, _data.coords, _obj.AddObject(1)); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, Pong _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { { if (_data.workerType != null) { var _buffer = global::System.Text.Encoding.UTF8.GetBytes(_data.workerType); global::Improbable.Worker.Internal.Pbio.AddBytes(_obj, 1, (byte *)_pool.Pin(_buffer), (uint)_buffer.Length); } else { global::Improbable.Worker.Internal.Pbio.AddBytes(_obj, 1, null, 0); } } { if (_data.workerMessage != null) { var _buffer = global::System.Text.Encoding.UTF8.GetBytes(_data.workerMessage); global::Improbable.Worker.Internal.Pbio.AddBytes(_obj, 2, (byte *)_pool.Pin(_buffer), (uint)_buffer.Length); } else { global::Improbable.Worker.Internal.Pbio.AddBytes(_obj, 2, null, 0); } } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, RelativeCylinderConstraint _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { { global::Improbable.Worker.Internal.Pbio.AddDouble(_obj, 1, _data.radius); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, TypeName _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { { global::Improbable.Gdk.Tests.TypeName.Other_Internal.Write(_pool, _data.otherType, global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 1)); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, CylinderConstraint _data, global::Improbable.Worker.CInterop.SchemaObject _obj) { { global::Improbable.Coordinates_Internal.Write(_pool, _data.center, _obj.AddObject(1)); } { _obj.AddDouble(2, _data.radius); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, CylinderConstraint _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { { global::Improbable.Coordinates_Internal.Write(_pool, _data.center, global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 1)); } { global::Improbable.Worker.Internal.Pbio.AddDouble(_obj, 2, _data.radius); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, NestedTypeName _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { { global::Improbable.Gdk.Tests.TypeName.Other.NestedTypeName.Other0_Internal.Write(_pool, _data.otherZero, global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 1)); } { global::Improbable.Worker.Internal.Pbio.AddUint32(_obj, 2, (uint)_data.enumField); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, NeighborsData _data, global::Improbable.Worker.CInterop.SchemaObject _obj) { if (_data.neighborList != null) { for (int _i = 0; _i < _data.neighborList.Count; ++_i) { _obj.AddInt64(1, _data.neighborList[_i].Id); } } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, ComponentInterest _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { if (_data.queries != null) { for (int _i = 0; _i < _data.queries.Count; ++_i) { global::Improbable.ComponentInterest.Query_Internal.Write(_pool, _data.queries[_i], global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 1)); } } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, WorkerRequirementSet _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { if (_data.attributeSet != null) { for (int _i = 0; _i < _data.attributeSet.Count; ++_i) { global::Improbable.WorkerAttributeSet_Internal.Write(_pool, _data.attributeSet[_i], global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 1)); } } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, WorkerAttributeSet _data, global::Improbable.Worker.CInterop.SchemaObject _obj) { if (_data.attribute != null) { for (int _i = 0; _i < _data.attribute.Count; ++_i) { _obj.AddString(1, _data.attribute[_i]); } } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, Vector3d _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { { global::Improbable.Worker.Internal.Pbio.AddDouble(_obj, 1, _data.x); } { global::Improbable.Worker.Internal.Pbio.AddDouble(_obj, 2, _data.y); } { global::Improbable.Worker.Internal.Pbio.AddDouble(_obj, 3, _data.z); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, Connection _data, global::Improbable.Worker.CInterop.SchemaObject _obj) { { _obj.AddUint32(1, (uint)_data.status); } { _obj.AddUint32(2, _data.dataLatencyMs); } { _obj.AddUint64(3, _data.connectedSinceUtc); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, Vector3f _data, global::Improbable.Worker.CInterop.SchemaObject _obj) { { _obj.AddFloat(1, _data.x); } { _obj.AddFloat(2, _data.y); } { _obj.AddFloat(3, _data.z); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, EdgeLength _data, global::Improbable.Worker.CInterop.SchemaObject _obj) { { _obj.AddDouble(1, _data.x); } { _obj.AddDouble(2, _data.y); } { _obj.AddDouble(3, _data.z); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, WorkerData _data, global::Improbable.Worker.CInterop.SchemaObject _obj) { { _obj.AddString(1, _data.workerId); } { _obj.AddString(2, _data.workerType); } { global::Improbable.Restricted.Connection_Internal.Write(_pool, _data.connection, _obj.AddObject(3)); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, QueryConstraint _data, global::Improbable.Worker.CInterop.SchemaObject _obj) { if (_data.sphereConstraint.HasValue) { global::Improbable.ComponentInterest.SphereConstraint_Internal.Write(_pool, _data.sphereConstraint.Value, _obj.AddObject(1)); } if (_data.cylinderConstraint.HasValue) { global::Improbable.ComponentInterest.CylinderConstraint_Internal.Write(_pool, _data.cylinderConstraint.Value, _obj.AddObject(2)); } if (_data.boxConstraint.HasValue) { global::Improbable.ComponentInterest.BoxConstraint_Internal.Write(_pool, _data.boxConstraint.Value, _obj.AddObject(3)); } if (_data.relativeSphereConstraint.HasValue) { global::Improbable.ComponentInterest.RelativeSphereConstraint_Internal.Write(_pool, _data.relativeSphereConstraint.Value, _obj.AddObject(4)); } if (_data.relativeCylinderConstraint.HasValue) { global::Improbable.ComponentInterest.RelativeCylinderConstraint_Internal.Write(_pool, _data.relativeCylinderConstraint.Value, _obj.AddObject(5)); } if (_data.relativeBoxConstraint.HasValue) { global::Improbable.ComponentInterest.RelativeBoxConstraint_Internal.Write(_pool, _data.relativeBoxConstraint.Value, _obj.AddObject(6)); } if (_data.entityIdConstraint.HasValue) { _obj.AddInt64(7, _data.entityIdConstraint.Value); } if (_data.componentConstraint.HasValue) { _obj.AddUint32(8, _data.componentConstraint.Value); } if (_data.andConstraint != null) { for (int _i = 0; _i < _data.andConstraint.Count; ++_i) { global::Improbable.ComponentInterest.QueryConstraint_Internal.Write(_pool, _data.andConstraint[_i], _obj.AddObject(9)); } } if (_data.orConstraint != null) { for (int _i = 0; _i < _data.orConstraint.Count; ++_i) { global::Improbable.ComponentInterest.QueryConstraint_Internal.Write(_pool, _data.orConstraint[_i], _obj.AddObject(10)); } } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, QueryConstraint _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { if (_data.sphereConstraint.HasValue) { global::Improbable.ComponentInterest.SphereConstraint_Internal.Write(_pool, _data.sphereConstraint.Value, global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 1)); } if (_data.cylinderConstraint.HasValue) { global::Improbable.ComponentInterest.CylinderConstraint_Internal.Write(_pool, _data.cylinderConstraint.Value, global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 2)); } if (_data.boxConstraint.HasValue) { global::Improbable.ComponentInterest.BoxConstraint_Internal.Write(_pool, _data.boxConstraint.Value, global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 3)); } if (_data.relativeSphereConstraint.HasValue) { global::Improbable.ComponentInterest.RelativeSphereConstraint_Internal.Write(_pool, _data.relativeSphereConstraint.Value, global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 4)); } if (_data.relativeCylinderConstraint.HasValue) { global::Improbable.ComponentInterest.RelativeCylinderConstraint_Internal.Write(_pool, _data.relativeCylinderConstraint.Value, global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 5)); } if (_data.relativeBoxConstraint.HasValue) { global::Improbable.ComponentInterest.RelativeBoxConstraint_Internal.Write(_pool, _data.relativeBoxConstraint.Value, global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 6)); } if (_data.entityIdConstraint.HasValue) { global::Improbable.Worker.Internal.Pbio.AddInt64(_obj, 7, _data.entityIdConstraint.Value); } if (_data.componentConstraint.HasValue) { global::Improbable.Worker.Internal.Pbio.AddUint32(_obj, 8, _data.componentConstraint.Value); } if (_data.andConstraint != null) { for (int _i = 0; _i < _data.andConstraint.Count; ++_i) { global::Improbable.ComponentInterest.QueryConstraint_Internal.Write(_pool, _data.andConstraint[_i], global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 9)); } } if (_data.orConstraint != null) { for (int _i = 0; _i < _data.orConstraint.Count; ++_i) { global::Improbable.ComponentInterest.QueryConstraint_Internal.Write(_pool, _data.orConstraint[_i], global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 10)); } } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, ExhaustiveBlittableSingularData _data, global::Improbable.Worker.Internal.Pbio.Object *_obj) { { global::Improbable.Worker.Internal.Pbio.AddBool(_obj, 1, (byte)(_data.field1 ? 1 : 0)); } { global::Improbable.Worker.Internal.Pbio.AddFloat(_obj, 2, _data.field2); } { global::Improbable.Worker.Internal.Pbio.AddInt32(_obj, 4, _data.field4); } { global::Improbable.Worker.Internal.Pbio.AddInt64(_obj, 5, _data.field5); } { global::Improbable.Worker.Internal.Pbio.AddDouble(_obj, 6, _data.field6); } { global::Improbable.Worker.Internal.Pbio.AddUint32(_obj, 8, _data.field8); } { global::Improbable.Worker.Internal.Pbio.AddUint64(_obj, 9, _data.field9); } { global::Improbable.Worker.Internal.Pbio.AddSint32(_obj, 10, _data.field10); } { global::Improbable.Worker.Internal.Pbio.AddSint64(_obj, 11, _data.field11); } { global::Improbable.Worker.Internal.Pbio.AddFixed32(_obj, 12, _data.field12); } { global::Improbable.Worker.Internal.Pbio.AddFixed64(_obj, 13, _data.field13); } { global::Improbable.Worker.Internal.Pbio.AddSfixed32(_obj, 14, _data.field14); } { global::Improbable.Worker.Internal.Pbio.AddSfixed64(_obj, 15, _data.field15); } { global::Improbable.Worker.Internal.Pbio.AddInt64(_obj, 16, _data.field16.Id); } { global::Improbable.Gdk.Tests.SomeType_Internal.Write(_pool, _data.field17, global::Improbable.Worker.Internal.Pbio.AddObject(_obj, 17)); } }