|
Swarm Object Manager 1.6
Unity Object Manager
|
This internal class represents the active and inactive lists of a SwarmItem type. Since SwarmItemManager's can handle multiple types of SwarmItems, there is an active and inactive list for each. More...
Public Member Functions | |
| PrefabItemLists () | |
| Initializes the lists. | |
Public Attributes | |
| LinkedList< SwarmItem > | activeItems |
| linked list of active items. Faster than a List since we may need to remove items in the middle of the list | |
| Stack< SwarmItem > | inactiveItems |
| stack of inactive items. It doesn't matter which of the inactive items we pull, so we always pop the top for efficiency | |
| int | itemCount |
| the total number of items (active and inactive in this list) | |
| float | inactivePruneTimeLeft |
| the amount of time in seconds left before the inactive list is pruned (unless the number of inactive items drops below the threshold) | |
This internal class represents the active and inactive lists of a SwarmItem type. Since SwarmItemManager's can handle multiple types of SwarmItems, there is an active and inactive list for each.
| SwarmItemManager.PrefabItemLists.PrefabItemLists | ( | ) |
Initializes the lists.
linked list of active items. Faster than a List since we may need to remove items in the middle of the list
stack of inactive items. It doesn't matter which of the inactive items we pull, so we always pop the top for efficiency
the amount of time in seconds left before the inactive list is pruned (unless the number of inactive items drops below the threshold)
the total number of items (active and inactive in this list)
1.7.4