mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-07 22:13:08 -04:00
Randomize mission strings, foundation for objectives
This commit is contained in:
@@ -28,6 +28,7 @@ import com.sleepycat.persist.model.Persistent;
|
||||
|
||||
import resources.objects.intangible.IntangibleObject;
|
||||
import resources.objects.waypoint.WaypointObject;
|
||||
import services.mission.MissionObjective;
|
||||
import engine.clients.Client;
|
||||
import engine.resources.objects.IPersistent;
|
||||
import engine.resources.scene.Planet;
|
||||
@@ -57,7 +58,7 @@ public class MissionObject extends IntangibleObject implements IPersistent {
|
||||
private String type = "";
|
||||
private int missionTemplateObject = 0;
|
||||
private WaypointObject attachedWaypoint;
|
||||
|
||||
private MissionObjective objective;
|
||||
|
||||
@NotPersistent
|
||||
MissionMessageBuilder messageBuilder = new MissionMessageBuilder(this);
|
||||
@@ -307,6 +308,18 @@ public class MissionObject extends IntangibleObject implements IPersistent {
|
||||
}
|
||||
}
|
||||
|
||||
public MissionObjective getObjective() {
|
||||
synchronized(objectMutex) {
|
||||
return objective;
|
||||
}
|
||||
}
|
||||
|
||||
public void setObjective(MissionObjective objective) {
|
||||
synchronized(objectMutex) {
|
||||
this.objective = objective;
|
||||
}
|
||||
}
|
||||
|
||||
public Transaction getTransaction() {
|
||||
return txn;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user