All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.legendofdragoon.scripting.tokens.Op Maven / Gradle / Ivy

There is a newer version: 0.5.6
Show newest version
package org.legendofdragoon.scripting.tokens;

import org.legendofdragoon.scripting.OpType;

public class Op extends Entry {
  public final OpType type;
  public final int headerParam;
  public final Param[] params;

  public Op(final int address, final OpType type, final int headerParam, final int paramCount) {
    super(address);
    this.type = type;
    this.headerParam = headerParam;
    this.params = new Param[type == OpType.CALL ? paramCount : type.paramNames.length];
  }

  @Override
  public String toString() {
    return "op " + this.type.name;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy