For more complicated modes custom classes would be insanely useful.
And I don't mean the somewhat existing singleton classes, I'd love to be able to define "real" classes.
If you guys have any suggestion on how to fake custom classes with different data types and functions, I'd love to hear some ideas too.
Structs would help a lot too, anyway.
[Suggestion] User-defined classes
Moderator: English Moderator
Re: [Suggestion] User-defined classes
even though i'm missing these two features as well, i'm not sure which custom class would be needed
do you have an example? so far i was able to implement every custom thing with key-value-coding (for example)
declaring custom enums would be great though! much code could be simplified and cleaned up if we wouldn't have to use integer codes (example) for these purposes
do you have an example? so far i was able to implement every custom thing with key-value-coding (for example)
declaring custom enums would be great though! much code could be simplified and cleaned up if we wouldn't have to use integer codes (example) for these purposes
Re: [Suggestion] User-defined classes
Creating a MOBA-like mode, having items/player-classes classes would severely simplify the whole code.
Having an array like: Item[] NAItems would obviously make it MUCH easier to achieve the effect without having insanely dirty code like I always have due to the inability to use OO scripting.
Having an array like: Item[] NAItems would obviously make it MUCH easier to achieve the effect without having insanely dirty code like I always have due to the inability to use OO scripting.
=3
Re: [Suggestion] User-defined classes
TGYoshi I see you are from netherland so you might be able to read a bit german. m4rcel, who did the manialink tetris, has written a blog post about fake classes for maniascript which he used in his tetris code. Scroll down right before the comments and there´s a spoiler, just click on "Anzeigen". There´s some sample code and a short explanation in german.
http://www.mania-community.de/entry.php ... is-Engines
regards, Jojo
http://www.mania-community.de/entry.php ... is-Engines
regards, Jojo
Re: [Suggestion] User-defined classes
He simply declares data for the quad class. I'll try something with Idents soon, might be able to declare for an ident..
Using index pointers to tons of arrays is just too messy.
Using index pointers to tons of arrays is just too messy.
=3
Re: [Suggestion] User-defined classes
Declaring for Idents isn't possible since you can not create Ident instances. You can't create an instance of anything easily.. Maybe UILayers but that's a huge base instance for simple classes.
I guess I have to mess around with arrays.
I guess I have to mess around with arrays.
=3
Who is online
Users browsing this forum: No registered users and 1 guest