Commands are now content

This commit is contained in:
Anuken
2023-09-23 17:10:19 -04:00
parent cafec1386c
commit 276245bf3c
7 changed files with 107 additions and 66 deletions

View File

@@ -112,7 +112,7 @@ public class ContentParser{
});
put(UnitCommand.class, (type, data) -> {
if(data.isString()){
var cmd = UnitCommand.all.find(u -> u.name.equals(data.asString()));
var cmd = content.unitCommand(data.asString());
if(cmd != null){
return cmd;
}else{
@@ -124,7 +124,7 @@ public class ContentParser{
});
put(UnitStance.class, (type, data) -> {
if(data.isString()){
var cmd = UnitStance.all.find(u -> u.name.equals(data.asString()));
var cmd = content.unitStance(data.asString());
if(cmd != null){
return cmd;
}else{