}
+DataFile::Loader::ActionMap Lighting::Loader::shared_actions;
+
Lighting::Loader::Loader(Lighting &l):
DataFile::ObjectLoader<Lighting>(l)
+{
+ set_actions(shared_actions);
+}
+
+void Lighting::Loader::init_actions()
{
add("ambient", &Loader::ambient);
add("fog_color", &Loader::fog_color);
public:
class Loader: public DataFile::ObjectLoader<Lighting>
{
+ private:
+ static ActionMap shared_actions;
+
public:
Loader(Lighting &);
private:
+ virtual void init_actions();
+
void ambient(float, float, float);
void fog_color(float, float, float);
void fog_density(float);