|
|
@ -106,10 +106,14 @@ namespace DFHack
|
|
|
|
StateChangeScript(state_change_event event, std::string path, bool save_specific = false)
|
|
|
|
StateChangeScript(state_change_event event, std::string path, bool save_specific = false)
|
|
|
|
:event(event), path(path), save_specific(save_specific)
|
|
|
|
:event(event), path(path), save_specific(save_specific)
|
|
|
|
{ }
|
|
|
|
{ }
|
|
|
|
bool operator==(const StateChangeScript& other)
|
|
|
|
bool const operator==(const StateChangeScript& other)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return event == other.event && path == other.path && save_specific == other.save_specific;
|
|
|
|
return event == other.event && path == other.path && save_specific == other.save_specific;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bool const operator!=(const StateChangeScript& other)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return !(operator==(other));
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// Core is a singleton. Why? Because it is closely tied to SDL calls. It tracks the global state of DF.
|
|
|
|
// Core is a singleton. Why? Because it is closely tied to SDL calls. It tracks the global state of DF.
|
|
|
|