Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Question Copy Constructors?

Joined
Aug 11, 2018
Messages
4
Do the GameObjects, Npcs and other entities have copy constructors? I tried, couldn't find.

If not, is there a way to save query results permanently? Or at least for the duration of the bot?

So that the branches/leaves don't have to constantly query the exact same object everytime. Because their attributes don't change, so why search over and over... CPU and time waste.
 
Java Warlord
Joined
Nov 17, 2014
Messages
4,906
You won't get around frequently querying for game information including entities like game objects because of the lifecycle of the game's objects.
But it's not really that big of a problem for the CPU
 
Joined
Aug 11, 2018
Messages
4
Sorry dude, I didn't understand that. Is object lifecycle long or short? Or are you saying that frequent queries are a bad practice?

Or you saying it's good either way, because it doesn't put load on the CPU.
 
Top