public Cloner(World world) { _world = world; _entities = world.Entities(); _components = world.Components(); _delegates = world.Delegates(); _references = new Pool <List <ComponentReference> >( () => new List <ComponentReference>(), instance => instance.Clear()); }
/// <summary> /// Initializes a new instance of the <see cref="Components{T}" /> struct. /// </summary> /// <param name="components"></param> public Components(Modules.Components components) { _components = components; }
/// <summary> /// Initializes a new instance of the <see cref="Components{T}.Read" /> struct. /// </summary> /// <param name="components"></param> public Read(Modules.Components components) { _components = components; }
/// <summary> /// Initializes a new instance of the <see cref="Components{T}.Write" /> struct. /// </summary> /// <param name="components"></param> public Write(Modules.Components components) { _components = components; }