public bool Write(DAIIO io, bool skiplength = false)
        {
            try
            {
                if (!skiplength)
                {
                    io.WriteBits(Length, LengthBits);
                }
                io.WriteInt16(SpawnerCreateCount);
                if (SpawnerCreates == null)
                {
                    SpawnerCreates = new SpawnerCreate[SpawnerCreateCount];

                    for (int xb = 0; xb < SpawnerCreateCount; xb++)
                    {
                        SpawnerCreates[xb] = new SpawnerCreate();
                    }
                }
                for (int i = 0; i < SpawnerCreateCount; i++)
                {
                    SpawnerCreates[i].Write(io);
                }

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
 public SpawnerCreateManager Read(DAIIO io)
 {
     xLength            = io.ReadBit2(LengthBits);
     SpawnerCreateCount = io.ReadInt16();
     SpawnerCreates     = new SpawnerCreate[SpawnerCreateCount];
     for (int i = 0; i < SpawnerCreateCount; i++)
     {
         SpawnerCreates[i] = new SpawnerCreate().Read(io);
     }
     return(this);
 }