π Examples
Some simple examples on how to use ClassLib
Creating a new class
-- Creates a new Class called "Person" inheriting from BaseClass
-- and stores it in the global variable Person
Person = BaseClass.Inherit("Person")
-- You can also create a new class that inherits from an inherited class
-- Let's create an Employee class, which will inherit from Person and BaseClass
Employee = Person.Inherit("Employee")
-- Spawn an instance of this class using the default constructor
local my_employee = Employee()
-- Destroy an instance by using the default destructor
my_employee:Destroy()Constructor/Destructor override
Storing Data
Adding new Methods
Local Events
Synchronized Classes
Network Events
Cloning Instances
Last updated
