EntityLumpEntry < Handle

Last Updated2022-09-05
Created At2022-09-05

An ordered list of key / value pairs for a map entity. If the entry in the EntityLump is removed, the handle will error on all operations. (The handle will remain valid on the scripting side, and will still need to be deleted.) Write operations (update, insert, erase, append) are only allowed during OnMapInit.

Methods7
SymbolDescription
AppendInserts a new key / value pair at the end of the entry's list.
EraseRemoves the key / value pair at the given index, shifting all entries past it down.
FindKeySearches the entry list for an index matching a key starting from a position.
GetCopies the key / value at the given index into buffers.
GetNextKeySearches the entry list for an index matching a key starting from a position. This also copies the value from that index into the given buffer. This can be used to find the first / only value matching a key, or to iterate over all the values that match said key.
InsertInserts a new key / value pair at the given index, shifting the pair at that index and beyond up. If EntityLumpEntry.Length is passed in, this is an append operation.
UpdateUpdates the key / value pair at the given index.
Properties1
SymbolTypeDescription
LengthintRetrieves the number of key / value pairs in the entry.