Merge pull request #3108 from JumpIfZero/bugfix/missing-api-changes-050122

project: add missing api changes from #3105
This commit is contained in:
Justin
2022-01-06 10:54:12 +11:00
committed by GitHub
5 changed files with 14 additions and 2 deletions

View File

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

View File

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

View File

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

View File

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

View File

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