コード例 #1
0
        public void WriteVariableId(Int32 variableId)
        {
            if (!Stream.Flags[1])
            {
                return;
            }

            Stream.Write((UInt64)variableId);
        }
コード例 #2
0
ファイル: SerializeClass.cs プロジェクト: exodus444/swtoremu2
 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);
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
 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);
     }
 }