public override void Read(ScorpioReader reader)
 {
     __Sign = reader.ReadInt32();
     if (HasSign(1))
     {
         _Value1 = reader.ReadInt32();
     }
     if (HasSign(2))
     {
         _Value2 = reader.ReadString();
     }
     if (HasSign(3))
     {
         int number = reader.ReadInt32();
         _Value3 = new List <int>();
         for (int i = 0; i < number; ++i)
         {
             _Value3.Add(reader.ReadInt32());
         }
     }
 }
Beispiel #2
0
        public static DataTest Read(TableManager tableManager, String fileName, ScorpioReader reader)
        {
            DataTest ret = new DataTest();

            ret._ID         = reader.ReadInt32();
            ret._TestInt    = reader.ReadInt32();
            ret._TestString = reader.ReadString();
            reader.ReadString();
            ret._TestLanguage = tableManager.getLanguageText(fileName + "_TestLanguage_" + ret._ID);
            ret._TestBool     = reader.ReadBool();
            ret._TestInt2     = Int2.Read(tableManager, fileName, reader);
            ret._TestEnumName = (TestEnum)reader.ReadInt32();
            {
                int        number = reader.ReadInt32();
                List <int> list   = new List <int> ();
                for (int i = 0; i < number; ++i)
                {
                    list.Add(reader.ReadInt32());
                }
                ret._TestArray = list.AsReadOnly();
            }
            {
                int         number = reader.ReadInt32();
                List <Int2> list   = new List <Int2> ();
                for (int i = 0; i < number; ++i)
                {
                    list.Add(Int2.Read(tableManager, fileName, reader));
                }
                ret._TestArray2 = list.AsReadOnly();
            }
            ret._TestInt3   = Int3.Read(tableManager, fileName, reader);
            ret.m_IsInvalid = ret.IsInvalid_impl();
            return(ret);
        }
Beispiel #3
0
        public static DataTest Read(ScorpioReader reader)
        {
            DataTest ret = new DataTest();

            ret._ID           = reader.ReadInt32();
            ret._TestInt      = reader.ReadInt32();
            ret._TestString   = reader.ReadString();
            ret._TestBool     = reader.ReadBool();
            ret._TestInt2     = Int2.Read(reader);
            ret._TestEnumName = (TestEnum)reader.ReadInt32();
            {
                int        number = reader.ReadInt32();
                List <int> list   = new List <int> ();
                for (int i = 0; i < number; ++i)
                {
                    list.Add(reader.ReadInt32());
                }
                ret._TestArray = list.AsReadOnly();
            }
            {
                int         number = reader.ReadInt32();
                List <Int2> list   = new List <Int2> ();
                for (int i = 0; i < number; ++i)
                {
                    list.Add(Int2.Read(reader));
                }
                ret._TestArray2 = list.AsReadOnly();
            }
            ret._TestInt3   = Int3.Read(reader);
            ret.m_IsInvalid = ret.IsInvalid_impl();
            return(ret);
        }
Beispiel #4
0
 public override void Read(ScorpioReader reader)
 {
     __Sign = reader.ReadInt32();
 }