[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?
Archived author: Grandold • Posted: 2022-05-16T17:29:24.159000+00:00
Original source
Cos of course I can do it how u got in examples, but main point the classname being a string and if that works, i didnt get it working
Archived author: Foe • Posted: 2022-05-16T17:30:08.724000+00:00
Original source
yeah the string is just a string and not a reference to anything, so you have to translate that string into something, ie. a function or a variable in the global namespace as an example
Archived author: Grandold • Posted: 2022-05-16T17:30:20.068000+00:00
Original source
I though I would need to somehow eval() the classname string to turn it into an actual class
Archived author: Grandold • Posted: 2022-05-16T17:30:49.794000+00:00
Original source
ye exactly
Archived author: Foe • Posted: 2022-05-16T17:30:55.303000+00:00
Original source
as an example if you have a table called Classes in the global namespace, you can do something like _G["Classes"]()
Archived author: Foe • Posted: 2022-05-16T17:31:04.469000+00:00
Original source
That returns the function with that name from the global namespace
Archived author: Grandold • Posted: 2022-05-16T17:31:05.595000+00:00
Original source
ye tried that too
Archived author: Foe • Posted: 2022-05-16T17:32:20.178000+00:00
Original source
https://github.com/Foereaper/CSMH/blob/m...H.lua#L214
[Embed: CSMH/SMH.lua at main · Foereaper/CSMH]
Client and Server Message Handler framework for communication between Eluna and WoW - CSMH/SMH.lua at main · Foereaper/CSMH
https://github.com/Foereaper/CSMH/blob/m...er/SMH.lua
Archived author: Foe • Posted: 2022-05-16T17:32:27.220000+00:00
Original source
That's something I do here
Archived author: Grandold • Posted: 2022-05-16T17:32:28.166000+00:00
Original source
none of that worked but I'll try again for sure then