EntityLump Class

A group of natives for a singleton entity lump, representing all the entities defined in the map.

Write operations (insert, erase, append) are only allowed during OnMapInit.

Methods 5

Name Description
Append

Creates an empty EntityLumpEntry, returning its index.

Erase

Erases an EntityLumpEntry at the given index, shifting all entries past it down. Any handles referencing the erased EntityLumpEntry will throw on any operations aside from delete.

Get

Returns the EntityLumpEntry at the given index. This handle should be freed by the calling plugin.

Insert

Inserts an empty EntityLumpEntry at the given index, shifting the existing entry and ones past it up.

Length

Returns the number of entities currently in the lump.