Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Small fix

  • Loading branch information...
commit f31908651859e8d29c673609ced910ee5bab1964 1 parent 2dcd109
unknown authored
BIN  Artemis_XNA_INDEPENDENT/ArtemisTest/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown
24 Artemis_XNA_INDEPENDENT/EntityWorld.cs
@@ -94,6 +94,18 @@ public ArtemisPool Pool
94 94
95 95 public void LoopStart()
96 96 {
  97 + if (!deleted.IsEmpty)
  98 + {
  99 + for (int i = 0, j = deleted.Size(); j > i; i++)
  100 + {
  101 + Entity e = deleted.Get(i);
  102 + entityManager.Remove(e);
  103 + groupManager.Remove(e);
  104 + e.DeletingState = false;
  105 + }
  106 + deleted.Clear();
  107 + }
  108 +
97 109 if (!refreshed.IsEmpty)
98 110 {
99 111 for (int i = 0, j = refreshed.Size(); j > i; i++)
@@ -104,18 +116,6 @@ public void LoopStart()
104 116 }
105 117 refreshed.Clear();
106 118 }
107   -
108   - if (!deleted.IsEmpty)
109   - {
110   - for (int i = 0, j = deleted.Size(); j > i; i++)
111   - {
112   - Entity e = deleted.Get(i);
113   - entityManager.Remove(e);
114   - groupManager.Remove(e);
115   - e.DeletingState = false;
116   - }
117   - deleted.Clear();
118   - }
119 119 }
120 120
121 121 public Dictionary<Entity,Bag<Component>> GetCurrentState() {
95 Artemis_XNA_INDEPENDENT/bin/Debug/artemis.XML
@@ -48,11 +48,6 @@
48 48
49 49 @param delay time delay in milliseconds until processing starts.
50 50 </member>
51   - <member name="M:Artemis.DelayedEntitySystem.GetInitialTimeDelay">
52   - Get the initial delay that the system was ordered to process entities after.
53   -
54   - @return the originally set delay.
55   - </member>
56 51 <member name="M:Artemis.DelayedEntitySystem.IsRunning">
57 52 Check if the system is counting down towards processing.
58 53
@@ -61,6 +56,11 @@
61 56 <member name="M:Artemis.DelayedEntitySystem.Stop">
62 57 Aborts running the system in the future and stops it. Call delayedRun() to start it again.
63 58 </member>
  59 + <member name="P:Artemis.DelayedEntitySystem.InitialTimeDelay">
  60 + Get the initial delay that the system was ordered to process entities after.
  61 +
  62 + @return the originally set delay.
  63 + </member>
64 64 <member name="M:Artemis.TagSystem.Process(Artemis.Entity)">
65 65 Process a entity this system is interested in.
66 66 @param e the entity to process.
@@ -132,16 +132,6 @@
132 132
133 133 @return the number of elements in this bag
134 134 </member>
135   - <member name="M:Artemis.Bag`1.GetCapacity">
136   - Returns the number of elements the bag can hold without growing.
137   -
138   - @return the number of elements the bag can hold without growing.
139   - </member>
140   - <member name="M:Artemis.Bag`1.IsEmpty">
141   - Returns true if this list contains no elements.
142   -
143   - @return true if this list contains no elements
144   - </member>
145 135 <member name="M:Artemis.Bag`1.Add(`0)">
146 136 Adds the specified element to the end of this bag. if needed also
147 137 increases the capacity of the bag.
@@ -163,6 +153,16 @@
163 153 Add all items into this bag.
164 154 @param added
165 155 </member>
  156 + <member name="P:Artemis.Bag`1.Capacity">
  157 + Returns the number of elements the bag can hold without growing.
  158 +
  159 + @return the number of elements the bag can hold without growing.
  160 + </member>
  161 + <member name="P:Artemis.Bag`1.IsEmpty">
  162 + Returns true if this list contains no elements.
  163 +
  164 + @return true if this list contains no elements
  165 + </member>
166 166 <member name="M:Artemis.DelayedEntityProcessingSystem.#ctor(System.Type,System.Type[])">
167 167 <summary>
168 168 Create a new DelayedEntityProcessingSystem. It requires at least one component.
@@ -209,17 +209,13 @@
209 209 Process a entity this system is interested in.
210 210 @param e the entity to process.
211 211 </member>
212   - <member name="M:Artemis.GroupSystem.Process(Artemis.Entity)">
213   - Process a entity this system is interested in.
214   - @param e the entity to process.
215   - </member>
216 212 <member name="M:Artemis.GroupManager.Set(System.String,Artemis.Entity)">
217 213 Set the group of the entity.
218 214
219 215 @param group group to set the entity into.
220 216 @param e entity to set into the group.
221 217 </member>
222   - <member name="M:Artemis.GroupManager.getEntities(System.String)">
  218 + <member name="M:Artemis.GroupManager.GetEntities(System.String)">
223 219 Get all entities that belong to the provided group.
224 220 @param group name of the group.
225 221 @return read-only bag of entities belonging to the group.
@@ -250,12 +246,6 @@
250 246 </summary>
251 247 <param name="world">EntityWorld</param>
252 248 </member>
253   - <member name="M:Artemis.ComponentMapper`1.SetEntityManager(Artemis.EntityManager)">
254   - <summary>
255   - Sets the entity manager for this component mapper
256   - </summary>
257   - <param name="em">Entity Manager that manages the component</param>
258   - </member>
259 249 <member name="M:Artemis.ComponentMapper`1.Get(Artemis.Entity)">
260 250 <summary>
261 251 Gets the component for the given entity/component type combo
@@ -263,6 +253,12 @@
263 253 <param name="e">Entity in which you are interested</param>
264 254 <returns>Component</returns>
265 255 </member>
  256 + <member name="P:Artemis.ComponentMapper`1.EntityManager">
  257 + <summary>
  258 + Sets the entity manager for this component mapper
  259 + </summary>
  260 + <param name="em">Entity Manager that manages the component</param>
  261 + </member>
266 262 <member name="M:Artemis.SystemManager.InitializeAll">
267 263 After adding all systems to the world, you must initialize them all.
268 264 </member>
@@ -352,47 +348,37 @@
352 348 <param name="entityId">Desired EntityId</param>
353 349 <returns>Entity</returns>
354 350 </member>
355   - <member name="M:Artemis.EntityManager.GetEntityCount">
  351 + <member name="M:Artemis.EntityManager.GetComponents(Artemis.Entity)">
  352 + <summary>
  353 + Get all components assigned to an entity
  354 + </summary>
  355 + <param name="e">Entity for which you want the components</param>
  356 + <returns>Bag of components</returns>
  357 + </member>
  358 + <member name="P:Artemis.EntityManager.EntityCount">
356 359 <summary>
357 360 Get how many entities are currently active
358 361 </summary>
359 362 <returns>How many entities are currently active</returns>
360 363 </member>
361   - <member name="M:Artemis.EntityManager.GetTotalCreated">
  364 + <member name="P:Artemis.EntityManager.TotalCreated">
362 365 <summary>
363 366 Get how many entities have been created since start.
364 367 </summary>
365 368 <returns>The total number of entities created</returns>
366 369 </member>
367   - <member name="M:Artemis.EntityManager.GetTotalRemoved">
  370 + <member name="P:Artemis.EntityManager.TotalRemoved">
368 371 <summary>
369 372 Gets how many entities have been removed since start.
370 373 </summary>
371 374 <returns>The total number of removed entities</returns>
372 375 </member>
373   - <member name="M:Artemis.EntityManager.GetComponents(Artemis.Entity)">
374   - <summary>
375   - Get all components assigned to an entity
376   - </summary>
377   - <param name="e">Entity for which you want the components</param>
378   - <returns>Bag of components</returns>
379   - </member>
380   - <member name="M:Artemis.EntityManager.GetActiveEntities">
  376 + <member name="P:Artemis.EntityManager.ActiveEntities">
381 377 <summary>
382 378 Get all active Entities
383 379 </summary>
384 380 <returns>Bag of active entities</returns>
385 381 </member>
386   - <member name="M:Artemis.Entity.GetId">
387   - The internal id for this entity within the framework. No other entity will have the same ID, but
388   - ID's are however reused so another entity may acquire this ID if the previous entity was deleted.
389   -
390   - @return id of the entity.
391   - </member>
392   - <member name="M:Artemis.Entity.GetUniqueId">
393   - Get the unique ID of this entity. Because entity instances are reused internally use this to identify between different instances.
394   - @return the unique id of this entity.
395   - </member>
396 382 <member name="M:Artemis.Entity.AddComponent(Artemis.Component)">
397 383 Add a component to this entity.
398 384 @param component to add to this entity
@@ -438,14 +424,11 @@
438 424 Assign a tag to this entity. Same as World.setTag().
439 425 @param tag of the entity.
440 426 </member>
441   - <member name="M:Artemis.EntityWorld.GetDelta">
442   - Time since last game loop.
443   - @return delta in milliseconds.
444   - </member>
445   - <member name="M:Artemis.EntityWorld.SetDelta(System.Int32)">
446   - You must specify the delta for the game here.
  427 + <member name="P:Artemis.Entity.Id">
  428 + The internal id for this entity within the framework. No other entity will have the same ID, but
  429 + ID's are however reused so another entity may acquire this ID if the previous entity was deleted.
447 430
448   - @param delta time since last game loop.
  431 + @return id of the entity.
449 432 </member>
450 433 <member name="M:Artemis.EntityWorld.DeleteEntity(Artemis.Entity)">
451 434 Delete the provided entity from the world.
@@ -464,5 +447,9 @@
464 447 @param entityId
465 448 @return entity
466 449 </member>
  450 + <member name="P:Artemis.EntityWorld.Delta">
  451 + Time since last game loop.
  452 + @return delta in milliseconds.
  453 + </member>
467 454 </members>
468 455 </doc>
BIN  Artemis_XNA_INDEPENDENT/bin/Debug/artemis.dll
Binary file not shown
BIN  Artemis_XNA_INDEPENDENT/bin/Debug/artemis.pdb
Binary file not shown
BIN  Artemis_XNA_INDEPENDENT/obj/x86/Debug/artemis.dll
Binary file not shown
BIN  Artemis_XNA_INDEPENDENT/obj/x86/Debug/artemis.pdb
Binary file not shown
BIN  artemis.suo
Binary file not shown

0 comments on commit f319086

Please sign in to comment.
Something went wrong with that request. Please try again.