mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-09-22 07:13:07 -04:00
Added waypoint methods to PlayerObject, Waypoint names and active status can now be set
This commit is contained in:
@@ -42,6 +42,25 @@ public class PlayerObject extends IntangibleObject {
|
||||
}
|
||||
}
|
||||
|
||||
public WaypointObject getWaypoint(long objId) {
|
||||
synchronized(waypoints) {
|
||||
return waypoints.get(objId);
|
||||
}
|
||||
}
|
||||
|
||||
public void updateWaypoint(WaypointObject obj) {
|
||||
synchronized(waypoints) {
|
||||
waypoints.update(obj.getObjectId(), this);
|
||||
}
|
||||
}
|
||||
|
||||
public void removeWaypoint(long objId) {
|
||||
synchronized(waypoints) {
|
||||
waypoints.remove(objId);
|
||||
waypoints.sendDeltaMessage(this);
|
||||
}
|
||||
}
|
||||
|
||||
public void setExperience(String type, int value) {
|
||||
experience.put(type, value);
|
||||
experience.sendDeltaMessage(this);
|
||||
|
||||
Reference in New Issue
Block a user