Esempio n. 1
0
  @Override
  public void setThingAttribs(Thing thing, UDMFStruct struct) {
    super.setThingAttribs(thing, struct);

    struct.put("special", thing.getSpecial());
    struct.put("argument0", thing.getArgument0());
    struct.put("argument1", thing.getArgument1());
    struct.put("argument2", thing.getArgument2());
    struct.put("argument3", thing.getArgument3());
    struct.put("argument4", thing.getArgument4());

    struct.put("dormant", thing.isDormant());
    struct.put("class1", thing.appearsForClass1());
    struct.put("class2", thing.appearsForClass2());
    struct.put("class3", thing.appearsForClass3());
  }
Esempio n. 2
0
  @Override
  public void getThingAttribs(UDMFStruct struct, Thing thing) {
    super.getThingAttribs(struct, thing);

    thing.setSpecial(struct.getInt("special"));
    thing.setArgument0(struct.getInt("argument0"));
    thing.setArgument1(struct.getInt("argument1"));
    thing.setArgument2(struct.getInt("argument2"));
    thing.setArgument3(struct.getInt("argument3"));
    thing.setArgument4(struct.getInt("argument4"));

    thing.setDormant(struct.getBoolean("dormant"));
    thing.setClass1(struct.getBoolean("class1"));
    thing.setClass2(struct.getBoolean("class2"));
    thing.setClass3(struct.getBoolean("class3"));
  }