コード例 #1
0
 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());
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Components{T}" /> struct.
 /// </summary>
 /// <param name="components"></param>
 public Components(Modules.Components components)
 {
     _components = components;
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
 /// <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;
 }