Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] hmm, but in your examples there the classname is nowhere as string, would that matter?

[DiscordArchive] hmm, but in your examples there the classname is nowhere as string, would that matter?

[DiscordArchive] hmm, but in your examples there the classname is nowhere as string, would that matter?

Pages (10): Previous 1 2 3 4 5 6 10 Next  
rektbyfaith
Administrator
0
05-16-2022, 05:42 PM
#31
Archived author: Foe • Posted: 2022-05-16T17:42:00.724000+00:00
Original source

If you store the class name in a global table called classes, sure, but in your example you iterate over the classes table already
rektbyfaith
05-16-2022, 05:42 PM #31

Archived author: Foe • Posted: 2022-05-16T17:42:00.724000+00:00
Original source

If you store the class name in a global table called classes, sure, but in your example you iterate over the classes table already

rektbyfaith
Administrator
0
05-16-2022, 05:42 PM
#32
Archived author: Foe • Posted: 2022-05-16T17:42:23.350000+00:00
Original source

like, how is your A and B classes defined? since thats not part of the script
rektbyfaith
05-16-2022, 05:42 PM #32

Archived author: Foe • Posted: 2022-05-16T17:42:23.350000+00:00
Original source

like, how is your A and B classes defined? since thats not part of the script

rektbyfaith
Administrator
0
05-16-2022, 05:45 PM
#33
Archived author: Grandold • Posted: 2022-05-16T17:45:38.659000+00:00
Original source

the class definitions aren't really an issue anymore, figured that part out but still just wondering that variable variable thing... but that your example would work as it is?
rektbyfaith
05-16-2022, 05:45 PM #33

Archived author: Grandold • Posted: 2022-05-16T17:45:38.659000+00:00
Original source

the class definitions aren't really an issue anymore, figured that part out but still just wondering that variable variable thing... but that your example would work as it is?

rektbyfaith
Administrator
0
05-16-2022, 05:46 PM
#34
Archived author: Foe • Posted: 2022-05-16T17:46:08.121000+00:00
Original source

Yeah if A and B are available as objects in the global namespace, it would work as is
rektbyfaith
05-16-2022, 05:46 PM #34

Archived author: Foe • Posted: 2022-05-16T17:46:08.121000+00:00
Original source

Yeah if A and B are available as objects in the global namespace, it would work as is

rektbyfaith
Administrator
0
05-16-2022, 05:46 PM
#35
Archived author: Grandold • Posted: 2022-05-16T17:46:11.671000+00:00
Original source

assuming both A and B classes are defined in same file and got the get method
rektbyfaith
05-16-2022, 05:46 PM #35

Archived author: Grandold • Posted: 2022-05-16T17:46:11.671000+00:00
Original source

assuming both A and B classes are defined in same file and got the get method

rektbyfaith
Administrator
0
05-16-2022, 05:46 PM
#36
Archived author: Foe • Posted: 2022-05-16T17:46:17.607000+00:00
Original source

yep
rektbyfaith
05-16-2022, 05:46 PM #36

Archived author: Foe • Posted: 2022-05-16T17:46:17.607000+00:00
Original source

yep

rektbyfaith
Administrator
0
05-16-2022, 05:46 PM
#37
Archived author: Grandold • Posted: 2022-05-16T17:46:29.416000+00:00
Original source

okay, so k and v in the for are automatically in global scope?
rektbyfaith
05-16-2022, 05:46 PM #37

Archived author: Grandold • Posted: 2022-05-16T17:46:29.416000+00:00
Original source

okay, so k and v in the for are automatically in global scope?

rektbyfaith
Administrator
0
05-16-2022, 05:46 PM
#38
Archived author: Foe • Posted: 2022-05-16T17:46:38.184000+00:00
Original source

if they are in the same file (local namespace) you could just do v():get()
rektbyfaith
05-16-2022, 05:46 PM #38

Archived author: Foe • Posted: 2022-05-16T17:46:38.184000+00:00
Original source

if they are in the same file (local namespace) you could just do v():get()

rektbyfaith
Administrator
0
05-16-2022, 05:47 PM
#39
Archived author: Grandold • Posted: 2022-05-16T17:47:08.938000+00:00
Original source

okay I rly gotta test that again, I think that would have been first thing I tried
rektbyfaith
05-16-2022, 05:47 PM #39

Archived author: Grandold • Posted: 2022-05-16T17:47:08.938000+00:00
Original source

okay I rly gotta test that again, I think that would have been first thing I tried

rektbyfaith
Administrator
0
05-16-2022, 05:47 PM
#40
Archived author: Foe • Posted: 2022-05-16T17:47:14.103000+00:00
Original source

rektbyfaith
05-16-2022, 05:47 PM #40

Archived author: Foe • Posted: 2022-05-16T17:47:14.103000+00:00
Original source

Pages (10): Previous 1 2 3 4 5 6 10 Next  
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)