mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
Resource Spawn System
Persistence to object database implemented
This commit is contained in:
@@ -30,6 +30,8 @@ import java.util.TreeMap;
|
||||
|
||||
import resources.common.Console;
|
||||
import resources.objects.intangible.IntangibleObject;
|
||||
import resources.objects.resource.ResourceContainerObject;
|
||||
import resources.objects.tool.SurveyTool;
|
||||
import resources.objects.waypoint.WaypointObject;
|
||||
import resources.objects.creature.CreatureObject;
|
||||
|
||||
@@ -133,6 +135,10 @@ public class PlayerObject extends IntangibleObject {
|
||||
|
||||
private Map<String, Integer> factionStandingMap = new TreeMap<String, Integer>();
|
||||
|
||||
private WaypointObject lastSurveyWaypoint;
|
||||
private SurveyTool lastUsedSurveyTool;
|
||||
private ResourceContainerObject recentContainer;
|
||||
|
||||
public PlayerObject() {
|
||||
super();
|
||||
messageBuilder = new PlayerMessageBuilder(this);
|
||||
@@ -788,4 +794,32 @@ public class PlayerObject extends IntangibleObject {
|
||||
getContainer().getClient().getSession().write(messageBuilder.buildShowBackpackDelta(showBackpack));
|
||||
}
|
||||
}
|
||||
|
||||
public WaypointObject getLastSurveyWaypoint() {
|
||||
return lastSurveyWaypoint;
|
||||
}
|
||||
|
||||
public void setLastSurveyWaypoint(WaypointObject lastSurveyWaypoint) {
|
||||
this.lastSurveyWaypoint = lastSurveyWaypoint;
|
||||
}
|
||||
|
||||
public SurveyTool getLastUsedSurveyTool() {
|
||||
synchronized(objectMutex) {
|
||||
return this.lastUsedSurveyTool;
|
||||
}
|
||||
}
|
||||
|
||||
public void setLastUsedSurveyTool(SurveyTool surveyTool) {
|
||||
synchronized(objectMutex) {
|
||||
this.lastUsedSurveyTool = surveyTool;
|
||||
}
|
||||
}
|
||||
|
||||
public ResourceContainerObject getRecentContainer() {
|
||||
return recentContainer;
|
||||
}
|
||||
|
||||
public void setRecentContainer(ResourceContainerObject recentContainer) {
|
||||
this.recentContainer = recentContainer;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user