mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
Cleaned up the reflection code a bit
* Renamed 'tag' variable to 'handler' * Removed addAlias stuff, instead check for matching names with if statements * Added after_reading function that is called by Reader after reading a complete object. This generalizes Packaged::validate, which is now also called via this mechanism. * Removed some backwards compatibility with <0.3.0 for templates
This commit is contained in:
+2
-2
@@ -126,8 +126,8 @@ class Set : public Packaged {
|
||||
|
||||
private:
|
||||
DECLARE_REFLECTION();
|
||||
template <typename Tag>
|
||||
void reflect_cards (Tag& tag);
|
||||
template <typename Handler>
|
||||
void reflect_cards(Handler& handler);
|
||||
|
||||
/// Object for managing and executing scripts
|
||||
unique_ptr<SetScriptManager> script_manager;
|
||||
|
||||
Reference in New Issue
Block a user