public void GenericCommand(IInBitStream bitstream, ref GenericCommand data) { var name = bitstream.ReadShortString(); data.name = coherenceToUnityConverters.ToUnityFixedString64(name); data.paramInt1 = bitstream.ReadIntegerRange(15, -9999); data.paramInt2 = bitstream.ReadIntegerRange(15, -9999); data.paramInt3 = bitstream.ReadIntegerRange(15, -9999); data.paramInt4 = bitstream.ReadIntegerRange(15, -9999); var paramFloat1 = bitstream.ReadFixedPoint(24, 2400); data.paramFloat1 = coherenceToUnityConverters.ToUnityfloat(paramFloat1); var paramFloat2 = bitstream.ReadFixedPoint(24, 2400); data.paramFloat2 = coherenceToUnityConverters.ToUnityfloat(paramFloat2); var paramFloat3 = bitstream.ReadFixedPoint(24, 2400); data.paramFloat3 = coherenceToUnityConverters.ToUnityfloat(paramFloat3); var paramFloat4 = bitstream.ReadFixedPoint(24, 2400); data.paramFloat4 = coherenceToUnityConverters.ToUnityfloat(paramFloat4); data.paramBool1 = bitstream.ReadBool(); data.paramBool2 = bitstream.ReadBool(); data.paramBool3 = bitstream.ReadBool(); data.paramBool4 = bitstream.ReadBool(); data.paramEntity1 = bitstream.ReadEntity(); data.paramEntity2 = bitstream.ReadEntity(); data.paramEntity3 = bitstream.ReadEntity(); data.paramEntity4 = bitstream.ReadEntity(); var paramString = bitstream.ReadShortString(); data.paramString = coherenceToUnityConverters.ToUnityFixedString64(paramString); }
public void TransferAction(IInBitStream bitstream, ref TransferAction data) { data.participant = bitstream.ReadIntegerRange(15, -9999); data.accepted = bitstream.ReadBool(); }
public uint Read(ref ArchetypeComponent data, IInBitStream bitstream) { var propertyMask = (uint)0; if (bitstream.ReadMask()) { var coherenceField = bitstream.ReadIntegerRange(15, -9999); data.index = coherenceField; propertyMask |= 0b00000000000000000000000000000001; } return(propertyMask); }
public uint Read(ref LocalUser data, IInBitStream bitstream) { var propertyMask = (uint)0; if (bitstream.ReadMask()) { var coherenceField = bitstream.ReadIntegerRange(15, -9999); data.localIndex = coherenceField; propertyMask |= 0b00000000000000000000000000000001; } return(propertyMask); }
public uint Read(ref GenericFieldInt9 data, IInBitStream bitstream) { var propertyMask = (uint)0; if (bitstream.ReadMask()) { var coherenceField = bitstream.ReadIntegerRange(15, -9999); data.number = coherenceField; propertyMask |= 0b00000000000000000000000000000001; } return(propertyMask); }
public void AuthorityTransfer(IInBitStream bitstream, ref AuthorityTransfer data) { data.participant = bitstream.ReadIntegerRange(15, -9999); }
public void ArchetypeComponent(IInBitStream bitstream, ref ArchetypeComponent data) { data.index = bitstream.ReadIntegerRange(15, -9999); }
public void LocalUser(IInBitStream bitstream, ref LocalUser data) { data.localIndex = bitstream.ReadIntegerRange(15, -9999); }
public void GenericFieldInt3(IInBitStream bitstream, ref GenericFieldInt3 data) { data.number = bitstream.ReadIntegerRange(15, -9999); }