Commit graph

39 commits

Author SHA1 Message Date
hbomb79
910a88915f Reserved keywords
These keywords have been reserved in preparation for future commits
2016-05-01 11:31:41 +12:00
hbomb79
f515151b92 Mixin targets are now loaded via MISSING_CLASS_LOADER.
If not found then an error will be thrown instead of allowing execution (resulting in an uncaught error at compilation).
2016-04-24 18:10:24 +12:00
hbomb79
2c1271af96 Fixed getter return values not being returning to caller. 2016-04-24 18:02:49 +12:00
hbomb79
b5188ecfb4 Fixed setters/getters not running
Forgot that the meta methods still use 'initialised'. To reduce lag it will be re added rather than checking the instanceRaw table everytime.
2016-04-24 18:02:04 +12:00
hbomb79
8884888e70 Adjusted error level
The error returns all the way back to the caller, rather than halfway through the class system.
2016-04-24 17:58:44 +12:00
hbomb79
e20fbc9df3 Fixed classLib
The functions have been adjusted to work with the new class system
2016-04-24 14:01:16 +12:00
hbomb79
2dd4b750ab Stored class type in raw (__type) 2016-04-24 14:00:50 +12:00
hbomb79
d0d1e8a7fe Reserved __type and __instance 2016-04-24 14:00:24 +12:00
hbomb79
479ea70ed3 Added 'unblacklist' function.
Made blacklist, whitelist and unblacklist functions return 'propertyCatch'.
2016-04-23 21:08:08 +12:00
hbomb79
0257fa1297 Updated 'mode' of file
Git wanted me to commit this, I suspect it's because I copied the file from my other computer.
2016-04-23 18:47:03 +12:00
hbomb79
b98cfccc56 Addressed lack of punctuation in 'throw' messages 2016-04-23 18:46:16 +12:00
hbomb79
4372d5afd7 Removed 'class.getRegistry' function. 2016-04-23 18:44:27 +12:00
hbomb79
2d20e32dcf Added 'whitelist' and 'blacklist' functions
These functions allow the ability for the class to control what metamethods can be adjusted on instances of the class.
2016-04-23 18:43:49 +12:00
hbomb79
0065cece5a Removed unnecessary functions and replaced them with raw keys 2016-04-23 18:42:07 +12:00
hbomb79
ff7af7ed3d Specified Vim as the cause for swap files. 2016-04-23 12:06:21 +12:00
hbomb79
65bf7a0b98 Shortened isBuilding check
An unnecessary 'and true' was removed from the return statement.
2016-04-23 12:01:37 +12:00
hbomb79
4e7c7a02f3 Added paren
I couldn't leave it like that any longer
2016-04-23 11:59:11 +12:00
hbomb79
b8095dc374 Rewrote Class System
The class system had a bug in which supers did not function properly.
2016-04-23 11:30:53 +12:00
Harry Felton
e4c364a9e6 Fixed incorrect Vim indentation 2016-03-18 18:52:23 +13:00
Harry Felton
274bb87673 Added class arugment parser
Allows for parsing of class arguments in a precise manner
2016-03-18 18:52:23 +13:00
Harry Felton
37631d844f Added startup comments
Meh, why not.
2016-03-18 18:52:23 +13:00
Harry Felton
934dae16a3 Stopped proxy use on construction
Proxy setters and getters will not be used when the class is being constructed (the __init__ function is being called)
2016-03-18 18:52:23 +13:00
Harry Felton
23eb844a99 Class system now uses missing class loader 2016-03-18 18:52:23 +13:00
Harry Felton
3da29229e6 Added missing class loader to make footer 2016-03-18 18:52:23 +13:00
Harry Felton
a93668dd54 Stopped make.lua from preprocessing script files 2016-03-18 18:52:23 +13:00
Harry Felton
03c8323a05 Fixed make & construct
Derp
2016-03-11 17:37:39 +13:00
Harry Felton
3fe56f4a34 Removed debug line
This line stored instances inside of the global environment when calls were made. This was for debug and isn't important now
2016-03-11 17:37:39 +13:00
hbomb79
e1192cc3f2 Added class unique ID 2016-03-11 17:32:31 +13:00
hbomb79
5c4fd017ad Added constructor
The constructor uses 2 third party programs and LuaFileSystem (module). Credit is given where due.
2016-03-08 08:02:40 +00:00
hbomb79
60312158a3 __init__ constructor 2016-02-24 22:38:40 +13:00
Harry Felton
aef5d254a8 Added abstract class mode 2016-02-24 10:47:52 +13:00
Harry Felton
904556b0d0 Added pre-process support for abstract 2016-02-24 08:34:07 +13:00
hbomb79
20d153e53d Fixed class extending unloaded classes 2016-02-23 21:40:58 +13:00
hbomb79
ec16cc1eeb Titanium Class Library
Files can also be pre-processed so that quotes are placed around class extension/mixin/alias targets.
2016-02-23 18:33:06 +13:00
Harry Felton
1c467c1995 Its not a makefile. 2016-02-23 14:35:23 +13:00
Harry Felton
93c4e6bf13 Added Class system
The class system is now ready (not really tested).

Also, the make file is done so that Titanium can be compiled.
2016-02-23 14:18:59 +13:00
Harry Felton
f7ff13a901 Update README.md 2016-02-21 22:10:42 +13:00
hbomb79
90bac0230a Added readme 2016-02-21 22:09:50 +13:00
Harry Felton
1ab9091c1b Initial commit 2016-02-21 22:07:52 +13:00