Logic wait & content look up instructions

This commit is contained in:
Anuken
2021-06-24 15:38:20 -04:00
parent 38a9ad9ec1
commit 0949852758
9 changed files with 192 additions and 4 deletions

View File

@@ -1023,6 +1023,26 @@ public class LExecutor{
}
}
public static class LookupI implements LInstruction{
public int dest;
public int from;
public ContentType type;
public LookupI(int dest, int from, ContentType type){
this.dest = dest;
this.from = from;
this.type = type;
}
public LookupI(){
}
@Override
public void run(LExecutor exec){
exec.setobj(dest, constants.lookupContent(type, exec.numi(from)));
}
}
//endregion
}