Stardew Engine
Loading...
Searching...
No Matches
Entity2DCollection.h File Reference
#include "HandleDefs.h"
#include "ObjectPool.h"
Include dependency graph for Entity2DCollection.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DynamicEntityListItem
 Entities that are moving dynamically, we keep in a list so we can cull with brute force. The overhead of removing and inserting them from the quadtree every time they move is too much, while the quadtree remains a good option for static entities. More...
 
struct  DynamicEnt2DList
 
struct  Entity2DCollection
 

Functions

HDynamicEntityListItem DynL_AddEntity (struct DynamicEnt2DList *pDynList, HEntity2D hEnt)
 
void DynL_RemoveItem (struct DynamicEnt2DList *pDynList, HDynamicEntityListItem hListItem)
 
int DynL_GetSize (struct DynamicEnt2DList *pDynList)
 

Function Documentation

◆ DynL_AddEntity()

HDynamicEntityListItem DynL_AddEntity ( struct DynamicEnt2DList pDynList,
HEntity2D  hEnt 
)

◆ DynL_GetSize()

int DynL_GetSize ( struct DynamicEnt2DList pDynList)

◆ DynL_RemoveItem()

void DynL_RemoveItem ( struct DynamicEnt2DList pDynList,
HDynamicEntityListItem  hListItem 
)