project: add missing api changes from #3105

This commit is contained in:
JumpIfZero
2022-01-05 17:23:48 +02:00
parent 1eb83c4eb2
commit 9da28cd644
5 changed files with 14 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ public abstract class RSGameObjectMixin implements RSGameObject
public Angle getOrientation() public Angle getOrientation()
{ {
int orientation = getModelOrientation(); int orientation = getModelOrientation();
int rotation = (getFlags() >> 6) & 3; int rotation = (getConfig() >> 6) & 3;
return new Angle(rotation * 512 + orientation); return new Angle(rotation * 512 + orientation);
} }

View File

@@ -19,5 +19,9 @@ public interface RSFloorDecoration extends GroundObject
@Override @Override
RSRenderable getRenderable(); RSRenderable getRenderable();
@Import("flags")
@Override
int getConfig();
void setPlane(int plane); void setPlane(int plane);
} }

View File

@@ -39,7 +39,8 @@ public interface RSGameObject extends GameObject
long getHash(); long getHash();
@Import("flags") @Import("flags")
int getFlags(); @Override
int getConfig();
int getPlane(); int getPlane();

View File

@@ -55,6 +55,9 @@ public interface RSScriptEvent extends ScriptEvent
@Import("mouseX") @Import("mouseX")
int getMouseX(); int getMouseX();
@Import("mouseY")
int getMouseY();
@Import("keyTyped") @Import("keyTyped")
// shit name // shit name
int getTypedKeyCode(); int getTypedKeyCode();

View File

@@ -32,5 +32,9 @@ public interface RSWallDecoration extends DecorativeObject
@Override @Override
RSRenderable getRenderable2(); RSRenderable getRenderable2();
@Import("flags")
@Override
int getConfig();
void setPlane(int plane); void setPlane(int plane);
} }