NOTE: This is meant to be used in Roblox, however, there may be some use cases outside of Roblox
NOTE: This uses the MIT Liscence
Obviously, RoClass is used to create classes. However, it is quite easy to do so with metatables. These are some things that normal, metatable classes cannot achieve:
- In some cases, you want some values in your class to be private, which cannot be done with metatable OOP.
- Typing getters and setters can become tedious and repetitive. RoClass creates them for you, including a way to edit their names
- Locked and ReadOnly values are used by Roblox themselves. This functionality allows users to have more control over their classes
- Since Roblox has Events and Connections (rather than loops), you can utilize a 'mock' version of this. This class is exactly like the Connection API.
If you want to use the current RoClass: https://web.roblox.com/catalog/3384263863
If you want to test out new features: https://web.roblox.com/library/3445547281/RoClass-Beta (Use RoClass[Beta] at your own risk. Changes could be made without notice.)
To learn more about RoClass, go to the wiki: https://github.com/NilScripter/RoClass/wiki
To stay up-to-date on up-coming updates and beta-features, head onto the RoClass project: https://github.com/NilScripter/RoClass/projects/1