- Cursor: RDC_PICK
- Flags: RDF_C
- Type: RD_Pick1
A pEntRec type is a very important type in writing XP's. The pEntRec type is the generic entity pointer that can point to any type of drawing entity. So, if you selected a circle with your RDATA call, pEntRec will point to the the circle entry within the "Drawing Database"
The "Drawing Database" is the collection of all the visible elements in the map. When we select elements, Campaign Cartographer returns a pointer to the selected element in the "Drawing Database".
Once you get a pointer to an entity, you can edit, interrogate or delete it.
Every entity shares some common data - appropriately named: CSTUFF
CStuff is defined as:
For example you have a pEntRec named pENTREC and you want to get the entities color: