Ejemplo n.º 1
0
        public void TesSetAt0()
        {
            FasterList <int> list = new FasterList <int>();

            list.AddAt(0, 10);

            Assert.That(list[0], Is.EqualTo(10));

            Assert.That(list.capacity, Is.EqualTo(1));
            Assert.That(list.count, Is.EqualTo(1));
        }
Ejemplo n.º 2
0
        public void TesSetAtCapacity()
        {
            FasterList <int> list = new FasterList <int>(3);

            list.AddAt(3, 10);

            Assert.That(list[3], Is.EqualTo(10));

            Assert.That(list.capacity, Is.EqualTo(4));
            Assert.That(list.count, Is.EqualTo(4));
        }
Ejemplo n.º 3
0
        internal static void Register <T>(IFiller entityBuilder) where T : struct, IEntityComponent
        {
            var location = EntityComponentID <T> .ID.Data = GlobalTypeID.NextID <T>();

            TYPE_IDS.AddAt(location, entityBuilder);
        }