Created SongOptions Lua interface with a similar design to the PlayerOptions interface. Moved enums that were inside SongOptions out and made them Lua accessible. Removed sAutosyncType and associated things from AdjustSync.cpp because it was unused. Added DefaultNilArgs and FArgGTEZero to LuaBinding as helpers. Moved INTERFACE defines from PlayerOptions.cpp to OptionsBinding.h.

This commit is contained in:
Kyzentun
2014-05-03 19:27:32 -06:00
parent b6b840187d
commit 0dfb131291
20 changed files with 384 additions and 258 deletions
+4 -4
View File
@@ -4,13 +4,13 @@
#include "LifeMeterBattery.h"
#include "LifeMeterTime.h"
LifeMeter *LifeMeter::MakeLifeMeter( SongOptions::LifeType t )
LifeMeter *LifeMeter::MakeLifeMeter( LifeType t )
{
switch( t )
{
case SongOptions::LIFE_BAR: return new LifeMeterBar;
case SongOptions::LIFE_BATTERY: return new LifeMeterBattery;
case SongOptions::LIFE_TIME: return new LifeMeterTime;
case LifeType_Bar: return new LifeMeterBar;
case LifeType_Battery: return new LifeMeterBattery;
case LifeType_Time: return new LifeMeterTime;
default:
FAIL_M(ssprintf("Unrecognized LifeMeter type: %i", t));
}