public void Read(byte[] bytes) { using (var io = IoBuffer.FromBytes(bytes, ByteOrder.LITTLE_ENDIAN)){ DeltaOwner = (VMVariableScope)io.ReadByte(); MaxOwner = (VMVariableScope)io.ReadByte(); Motive = (VMMotive)io.ReadByte(); Flags = (VMSetMotiveChangeFlags)io.ReadByte(); DeltaData = io.ReadInt16(); MaxData = io.ReadInt16(); } }
public void Read(byte[] bytes) { using (var io = IoBuffer.FromBytes(bytes, ByteOrder.LITTLE_ENDIAN)){ DeltaOwner = (VMVariableScope)io.ReadByte(); MaxOwner = (VMVariableScope)io.ReadByte(); Motive = (VMMotive)io.ReadByte(); Flags = (VMSetMotiveChangeFlags)io.ReadByte(); DeltaData = io.ReadUInt16(); MaxData = io.ReadUInt16(); } }