mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-04 05:16:21 -04:00
Added a Static Object constructor for convenience
This commit is contained in:
@@ -98,7 +98,10 @@ public class StaticService implements INetworkDispatch {
|
||||
public SWGObject spawnObject(String template, String planetName, long cellId, float x, float y, float z, float qW, float qX, float qY, float qZ) {
|
||||
return spawnObject(template, planetName, cellId, x, y, z, qW, qX, qY, qZ, -1);
|
||||
}
|
||||
|
||||
|
||||
public SWGObject spawnObject(String template, String planetName, SWGObject cell, float x, float y, float z, float qW, float qX, float qY, float qZ, int respawnTime) {
|
||||
return spawnObject(template, planetName, ((cell == null) ? 0L : cell.getObjectID()), x, y, z, qW, qX, qY, qZ, respawnTime);
|
||||
}
|
||||
|
||||
public SWGObject spawnObject(String template, String planetName, long cellId, float x, float y, float z, float qW, float qX, float qY, float qZ, int respawnTime) {
|
||||
Planet planet = core.terrainService.getPlanetByName(planetName);
|
||||
|
||||
Reference in New Issue
Block a user