Batch storage. Entry updates/changes will also be applied to the storage
Object pool to retrieve new entries from
Protected
Readonly
_entriesReadonly
entriesEntries in this batch (in order of storage).
Protected
Readonly
entryArray containing an item for each entry in this batch. Allows using entry index to look up it's associated change.
Protected
Optional
firstEntry index of the first changed entry. Allows skipping unchanged entries before it.
Protected
initializedProtected
Optional
lastEntry index of the last changed entry. Allows stopping change-application early.
Protected
Readonly
objectMap from object to entry. For lookup only.
Readonly
storageBatch storage. Entry updates/changes will also be applied to the storage
Size of the batch. The unit depends on how the batch is used in its batcher.
Protected
applyApply changes and try to do the least amount of work for it.
With a lot of changes per tick this becomes a performance-critical method.
Mark an entry as changed. The change will be queued, to be applied via Batch.update.
Entry to mark changed
Type of change
Clear the batch of entries and any additional data.
Get entry for object
.
Object
Entry or undefined
Check if this batch has an entry for object
.
Object
true
if an entry exists
Protected
onPerform any additional clean up when an entry is deleted.
Deleted entry
Protected
rebuildUpdate batch by applying all changes and updating storage.