Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 13,353 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Overloading engine functions... #453527
07/30/15 21:48
07/30/15 21:48
Joined: Aug 2005
Posts: 199
houston
S
seneca Offline OP
Member
seneca  Offline OP
Member
S

Joined: Aug 2005
Posts: 199
houston
I'm not sure, but can you overload engine functions? If so, how?

I used to know how to do it with the old system back in the day, but it's been too long. I think....

Google and this forum doesn't return the results I need when I search, "overload" "engine functions" laugh.

I am trying to overload pan_setbutton command.

thanks for the help.


a8 commercial
Re: Overloading engine functions... [Re: seneca] #453529
07/30/15 21:56
07/30/15 21:56
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
just create a new function with the same name but different parameters. Depending on the parameters you give the function when calling it, the engine decides which of them it has to use.

This also means that you cannot overload a function and use the same number and types of the parameters.


POTATO-MAN saves the day! - Random
Re: Overloading engine functions... [Re: Kartoffel] #453542
07/31/15 15:57
07/31/15 15:57
Joined: Aug 2005
Posts: 199
houston
S
seneca Offline OP
Member
seneca  Offline OP
Member
S

Joined: Aug 2005
Posts: 199
houston
Thanks, I remember it being easy, but I didn't think it was that easy...


a8 commercial

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1