I am wanting to loop through the Entity data that my client has without making any server calls that the client would not naturally make. Does the EVE DoGetEntities method generate a server call?
Below I can see (from looking at evebot) how to use that method to list entities. But I was unable to figure out how to loop through ${Entity} objects with out issuing a DoGetEntities. I can reference individual Entiry objects by ID but could not figure out how to loop through the Entities that exist in my client.
If EVE DoGetEntities does not generate a server call, but instead is looking at client data then maybe this is a non-issue. But if it is generating a call can anyone help me with an alternate method to loop though the Entities the client currently has stored?
Below I can see (from looking at evebot) how to use that method to list entities. But I was unable to figure out how to loop through ${Entity} objects with out issuing a DoGetEntities. I can reference individual Entiry objects by ID but could not figure out how to loop through the Entities that exist in my client.
If EVE DoGetEntities does not generate a server call, but instead is looking at client data then maybe this is a non-issue. But if it is generating a call can anyone help me with an alternate method to loop though the Entities the client currently has stored?
Code:
function main()
{
echo "--script start"
variable string SearchParams = "byDist"
variable index:entity Entities
variable iterator EntityIterator
if ${Me.InSpace}
{
EVE:DoGetEntities[Entities, ${SearchParams}]
Entities:GetIterator[EntityIterator]
if ${EntityIterator:First(exists)}
{
do
{
echo ${EntityIterator.Value.Name}
}
while ${EntityIterator:Next(exists)}
}
}
echo "--script end"
}