Skip to content

Commit

Permalink
cache2: support rev221 obj fields
Browse files Browse the repository at this point in the history
  • Loading branch information
abextm committed Jul 10, 2024
1 parent 2bd9d9d commit f6ff896
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cache2-ts/src/loaders/Obj.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export class Obj extends PerFileLoadable {
public ambientSoundChangeTicksMax = 0;
public randomizeAnimationStart = true;
public blockingMask: undefined | number = undefined;
public deferAnimChange = false;
public params = new Params();

public static decode(r: Reader, id: ObjID): Obj {
Expand Down Expand Up @@ -242,6 +243,9 @@ export class Obj extends PerFileLoadable {
case 89:
v.randomizeAnimationStart = false;
break;
case 90:
v.deferAnimChange = true;
break;
case 92: {
v.varbit = <VarbitID> r.u16n();
v.varp = <VarPID> r.u16n();
Expand Down

0 comments on commit f6ff896

Please sign in to comment.