public void WriteVariableId(Int32 variableId) { if (!Stream.Flags[1]) { return; } Stream.Write((UInt64)variableId); }
public SerializeClass(PackedStream2 stream, int valueState, int count) : base(stream, HeroTypes.Class) { m_28 = 0UL; m_30 = m_34 = 0; m_38 = null; if (stream.Flags[4]) { throw new NotImplementedException(); } stream.Write(count, count); }
public SerializeList(PackedStream2 stream, int valueState, HeroTypes listType, int Count) : base(stream, HeroTypes.List) { index = 0; if (stream.Flags[4]) { throw new NotImplementedException(); } if (stream.Flags[0]) { var num = (ulong)listType; stream.Write(num); } if (stream.Style == 8 || stream.Style == 10) { stream.Write(Count * 2, Count * 2); } else { stream.Write(Count, Count); } }
public SerializeLookupList(PackedStream2 stream, int valueState, HeroType type, int Count) : base(stream, HeroTypes.LookupList) { m_30 = false; if (stream.Flags[4]) { throw new NotImplementedException(); } if (stream.Flags[0]) { stream.Write((ulong)type.Indexer.Type); } SetValueType(type.Values.Type); if (stream.Style == 8 || stream.Style == 10) { stream.Write(Count * 2, Count * 2); } else { stream.Write(Count, Count); } }