Esempio n. 1
0
        //it's an internal interface
        void IFiller.FillFromByteArray(EntityComponentInitializer init, NativeBag buffer)
        {
            DBC.ECS.Check.Require(UnmanagedTypeExtensions.IsUnmanaged <T>() == true, "invalid type used");

            _action(init, buffer);
        }
Esempio n. 2
0
            public static void ForceUnmanaged <U>(EntityComponentInitializer init, NativeBag buffer) where U : unmanaged, IEntityComponent
            {
                var component = buffer.Dequeue <U>();

                init.Init(component);
            }
        //it's an internal interface
        public void FillFromByteArray(EntityComponentInitializer init, NativeBag buffer)
        {
            var component = buffer.Dequeue <T>();

            init.Init(component);
        }