Replace areas can now use any type of requirement.

Many bug fix in Key Areas and Replace Areas, especially for the
requirements management.
This commit is contained in:
Zukero
2017-08-18 16:20:25 +02:00
parent cfb38c33d6
commit 6cb0941ca6
4 changed files with 18 additions and 7 deletions

View File

@@ -89,6 +89,9 @@ public class KeyArea extends MapObject {
if (requirement.required_value != null) {
tmxObject.getProperties().setProperty("requireValue", requirement.required_value.toString());
}
if (requirement.negated != null) {
tmxObject.getProperties().setProperty("requireNegation", Boolean.toString(requirement.negated));
}
}
}
}