mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-14 04:13:14 -04:00
Refactored WaypointObject
This commit is contained in:
@@ -34,6 +34,7 @@ import resources.datatables.ClientPOIRadius;
|
||||
import services.playercities.ClientRegion;
|
||||
import engine.clientdata.ClientFileManager;
|
||||
import engine.clientdata.visitors.DatatableVisitor;
|
||||
import engine.resources.common.CRC;
|
||||
import engine.resources.config.Config;
|
||||
import engine.resources.objects.SWGObject;
|
||||
import engine.resources.scene.Planet;
|
||||
@@ -168,6 +169,16 @@ public class TerrainService {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Planet getPlanetByCrc(int crc) {
|
||||
for (int i = 0; i < planets.size(); i++) {
|
||||
if (CRC.StringtoCRC(planets.get(i).getName().toLowerCase()) == crc) {
|
||||
return planets.get(i);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public Planet getPlanetByPath(String path) {
|
||||
for (int i = 0; i < planets.size(); i++) {
|
||||
if (planets.get(i).getPath().equals(path)) {
|
||||
|
||||
Reference in New Issue
Block a user