Example #1
0
  @Override
  public void setLinedefAttribs(Linedef linedef, UDMFStruct struct) {
    super.setLinedefAttribs(linedef, struct);

    struct.put("playercross", linedef.activatesByPlayerCross());
    struct.put("playeruse", linedef.activatesByPlayerUse());
    struct.put("monstercross", linedef.activatesByMonsterCross());
    struct.put("monsteruse", linedef.activatesByMonsterUse());
    struct.put("impact", linedef.activatesByMissileImpact());
    struct.put("playerpush", linedef.activatesByPlayerPush());
    struct.put("monsterpush", linedef.activatesByMonsterPush());
    struct.put("missilecross", linedef.activatesByMissileCross());
    struct.put("repeatspecial", linedef.isRepeatable());

    struct.put("argument0", linedef.getArgument0());
    struct.put("argument1", linedef.getArgument1());
    struct.put("argument2", linedef.getArgument2());
    struct.put("argument3", linedef.getArgument3());
    struct.put("argument4", linedef.getArgument4());
  }
Example #2
0
  @Override
  public void getLinedefAttribs(UDMFStruct struct, Linedef linedef) {
    super.getLinedefAttribs(struct, linedef);

    linedef.setActivatesByPlayerCross(struct.getBoolean("playercross"));
    linedef.setActivatesByPlayerUse(struct.getBoolean("playeruse"));
    linedef.setActivatesByMonsterCross(struct.getBoolean("monstercross"));
    linedef.setActivatesByMonsterUse(struct.getBoolean("monsteruse"));
    linedef.setActivatesByMissileImpact(struct.getBoolean("impact"));
    linedef.setActivatesByPlayerPush(struct.getBoolean("playerpush"));
    linedef.setActivatesByMonsterPush(struct.getBoolean("monsterpush"));
    linedef.setActivatesByMissileCross(struct.getBoolean("missilecross"));
    linedef.setRepeatable(struct.getBoolean("repeatspecial"));

    linedef.setArgument0(struct.getInt("argument0"));
    linedef.setArgument1(struct.getInt("argument1"));
    linedef.setArgument2(struct.getInt("argument2"));
    linedef.setArgument3(struct.getInt("argument3"));
    linedef.setArgument4(struct.getInt("argument4"));
  }