mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
combined_editor function, and improved dependency handling (removing duplicates), viewer refreshes on events from script manager
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@147 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -13,3 +13,5 @@
|
||||
// what a waste of a source file...
|
||||
|
||||
volatile LONG Age::new_age;
|
||||
|
||||
IMPLEMENT_DYNAMIC_ARG(long, last_update_age, 0);
|
||||
|
||||
+9
-2
@@ -10,6 +10,7 @@
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
#include <util/prec.hpp>
|
||||
#include <util/dynamic_arg.hpp>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
extern "C" {
|
||||
@@ -32,6 +33,7 @@ class Age {
|
||||
Age() {
|
||||
update();
|
||||
}
|
||||
Age(LONG age) : age(age) {}
|
||||
|
||||
/// Update the age to become the newest one
|
||||
inline void update() {
|
||||
@@ -51,9 +53,14 @@ class Age {
|
||||
static volatile LONG new_age;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : Aged
|
||||
|
||||
|
||||
/// Age the object currently being processed was last updated
|
||||
/** NOTE:
|
||||
* image generating functions have two modes
|
||||
* if last_update_age > 0 they return whether the image is still up to date
|
||||
* if last_update_age == 0 they generate the image
|
||||
*/
|
||||
DECLARE_DYNAMIC_ARG (long, last_update_age);
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user