mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2025-01-19 08:36:27 +01:00
rename unity packetinfo source
This commit is contained in:
parent
b41ac108af
commit
0a0ee6a150
@ -3,7 +3,7 @@ package gearth.services.packet_info;
|
|||||||
import gearth.services.packet_info.providers.RemotePacketInfoProvider;
|
import gearth.services.packet_info.providers.RemotePacketInfoProvider;
|
||||||
import gearth.services.packet_info.providers.implementations.HarblePacketInfoProvider;
|
import gearth.services.packet_info.providers.implementations.HarblePacketInfoProvider;
|
||||||
import gearth.services.packet_info.providers.implementations.SulekPacketInfoProvider;
|
import gearth.services.packet_info.providers.implementations.SulekPacketInfoProvider;
|
||||||
import gearth.services.packet_info.providers.implementations.UnityPacketInfoProvider;
|
import gearth.services.packet_info.providers.implementations.GEarthUnityPacketInfoProvider;
|
||||||
import gearth.protocol.HMessage;
|
import gearth.protocol.HMessage;
|
||||||
import gearth.protocol.HPacket;
|
import gearth.protocol.HPacket;
|
||||||
import gearth.protocol.connection.HClient;
|
import gearth.protocol.connection.HClient;
|
||||||
@ -113,7 +113,7 @@ public class PacketInfoManager {
|
|||||||
List<PacketInfo> result = new ArrayList<>();
|
List<PacketInfo> result = new ArrayList<>();
|
||||||
|
|
||||||
if (clientType == HClient.UNITY) {
|
if (clientType == HClient.UNITY) {
|
||||||
result.addAll(new UnityPacketInfoProvider(hotelversion).provide());
|
result.addAll(new GEarthUnityPacketInfoProvider(hotelversion).provide());
|
||||||
}
|
}
|
||||||
else if (clientType == HClient.FLASH) {
|
else if (clientType == HClient.FLASH) {
|
||||||
try {
|
try {
|
||||||
|
@ -12,9 +12,9 @@ import java.net.URISyntaxException;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class UnityPacketInfoProvider extends PacketInfoProvider {
|
public class GEarthUnityPacketInfoProvider extends PacketInfoProvider {
|
||||||
|
|
||||||
public UnityPacketInfoProvider(String hotelVersion) {
|
public GEarthUnityPacketInfoProvider(String hotelVersion) {
|
||||||
super(hotelVersion);
|
super(hotelVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ public class UnityPacketInfoProvider extends PacketInfoProvider {
|
|||||||
private PacketInfo jsonToPacketInfo(JSONObject object, HMessage.Direction destination) {
|
private PacketInfo jsonToPacketInfo(JSONObject object, HMessage.Direction destination) {
|
||||||
String name = object.getString("Name");
|
String name = object.getString("Name");
|
||||||
int headerId = object.getInt("Id");
|
int headerId = object.getInt("Id");
|
||||||
return new PacketInfo(destination, headerId, null, name, null, "Unity_local");
|
return new PacketInfo(destination, headerId, null, name, null, "G-Earth");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
Loading…
Reference in New Issue
Block a user