isxGames Forums  

isxGames Home Forums Start Page Forums Frequently Asked Questions FAQ Member List Members List
Go Back   isxGames Forums > ISXEVE for EVE > Tutorials, Questions and Answers
User Name
Password
Register Calendar Calendar Search isxGames Forums Search Todays Posts Today's Posts Mark Forums Read

 
Thread Tools Display Modes Language
Old 02-28-2010, 07:21 PM   #1
LRonSmith
 Newbie
 
 Join Date: Mar 2008
  Posts: 21
Default Looping through Entity objects

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?

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" }
LRonSmith is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:51 PM.

SteelBlue
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
 

Valid XHTML 1.0!   Valid CSS!