Build type information on first use (load-time), instead of using a hardcoded list

--HG--
branch : dynamiccore2
This commit is contained in:
Bart van Strien
2016-11-13 16:38:57 +01:00
parent 452a8a877e
commit c761202486
192 changed files with 734 additions and 614 deletions
+5 -3
View File
@@ -25,8 +25,10 @@ namespace love
namespace audio
{
Source::Source(Type type)
: type(type)
love::Type Source::type(&Object::type);
Source::Source(Type sourceType)
: sourceType(sourceType)
{
}
@@ -36,7 +38,7 @@ Source::~Source()
Source::Type Source::getType() const
{
return type;
return sourceType;
}
bool Source::getConstant(const char *in, Type &out)