Function AgentManagedStorage.Allocate

Allocate (Entity owner, ManagedState state, ManagedSettings settings)

Allocates a slot for a newly created agent.

Internal Static
int Allocate (

Entity

owner

ManagedState

state

ManagedSettings

settings

)

Allocates a slot for a newly created agent.

The caller must add an AgentManagedRef and an AgentManagedBackupRef component holding the returned slot to the entity.