Example #1
0
        internal void Deserialize(EasyReader input)
        {
            int typeCount = input.ReadInt32();

            for (int i = 0; i < typeCount; i++)
            {
                var type = input.ReadEnum <CarrierComponentType>();
                int num  = input.ReadInt32();
                for (int j = 0; j < num; j++)
                {
                    AddComponent(type, input.ReadString());
                }
            }
        }