mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 08:39:04 +00:00
Rename & Repackage
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
package com.rs2.game.objects;
|
||||
|
||||
import com.rs2.GameEngine;
|
||||
|
||||
public class Object {
|
||||
|
||||
public int objectId;
|
||||
public int objectX;
|
||||
public int objectY;
|
||||
public int height;
|
||||
public int face, faceOriginal;
|
||||
public int type;
|
||||
public int newId;
|
||||
public int tick;
|
||||
|
||||
public Object(int ID, int X, int Y, int Height, int Face, int Type, int NewId, int Tick) {
|
||||
Object p = GameEngine.objectManager.getObject(X, Y, Height);
|
||||
if (p != null) {
|
||||
if (ID == p.objectId) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
objectId = ID;
|
||||
objectX = X;
|
||||
objectY = Y;
|
||||
height = Height;
|
||||
face = Face;
|
||||
type = Type;
|
||||
newId = NewId;
|
||||
tick = Tick;
|
||||
GameEngine.objectManager.addObject(this);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user