EntityData

Store data tied to entities cleanly without using :GetData(), a method which is accessible globally.

Summary

Type
Function

Function

table GetData(Entity entity)

Function

void RemoveData(Entity entity)

Function

void Clean()

Methods

GetData()

table GetData(Entity entity)

Returns a mutable table that is tied to entity.

RemoveData()

void RemoveData(Entity entity)

Removes the mutable table tied to entity returned by GetData() from memory.

Clean()

void Clean()

Clears any mutable tables tied to Entity objects that no longer exist.

Last updated