Swarm Object Manager 1.6
Unity Object Manager
Public Member Functions | Public Attributes
SwarmItemManager.PrefabItemLists Class Reference

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...

List of all members.

Public Member Functions

 PrefabItemLists ()
 Initializes the lists.

Public Attributes

LinkedList< SwarmItemactiveItems
 linked list of active items. Faster than a List since we may need to remove items in the middle of the list
Stack< SwarmIteminactiveItems
 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)

Detailed Description

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.


Constructor & Destructor Documentation

SwarmItemManager.PrefabItemLists.PrefabItemLists ( )

Initializes the lists.


Member Data Documentation

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)


The documentation for this class was generated from the following file: