forked from SoDOff-Project/sodoff
support for MMO in SuperSecret
thanks to HaiFire
This commit is contained in:
parent
a756023a86
commit
1dfcc655eb
@ -15,6 +15,7 @@ public class ConfigurationController : Controller {
|
||||
[HttpPost]
|
||||
[Produces("application/xml")]
|
||||
[Route("ConfigurationWebService.asmx/GetMMOServerInfoWithZone")]
|
||||
[Route("ConfigurationWebService.asmx/GetMMOServerInfo")] // used by SuperSecret
|
||||
public IActionResult GetMMOServerInfoWithZone([FromForm] string apiKey) {
|
||||
return Ok(mmoConfigService.GetMMOServerInformation(
|
||||
ClientVersion.GetVersion(apiKey.ToLower()) // NOTE: in this request apiKey is send uppercase
|
||||
|
@ -23,6 +23,18 @@
|
||||
<ZoneList>DWMadPenguinHQINT UncleMilton EnemyValley LoungeIntUpper UncleMiltonBounceHouse Boardwalk MyRoomsInt DWMadEuropeAlps SpeedDrome WinterWonderland GemMineInt Beach TrainingIsland * IslandX SanctuaryBaby DWMadEuropeParis AdventureCanyon DWMadNYHarbor JumpStartBowlInt TownCenter SanctuaryFlying MultiplayerSystem DWMadNYCentralParkFunZone MainStreet LearningInt HomeBase Hollows FreeFallMtn ArcadeInt ShipWreckLagoon DWMadEuropeItaly MummyMazeInt EnchantedSanctuary MyVIPRoomInt DownTown DWMadNYCentralPark MyNeighborhood MountainJetpack DWMadNYTimesSquare MainStreetFunZone DuneBuggyZone LoungeInt JSStadiumInt SanctuaryAdult BroomStickArena RabbitHoleInt CoconutMall Lobby </ZoneList>
|
||||
</Version>
|
||||
|
||||
<Version>
|
||||
<!-- SuperSecret -->
|
||||
<VersionMin>0x02000000</VersionMin>
|
||||
<VersionMax>0x02ffffff</VersionMax>
|
||||
<MMOServerInfo>
|
||||
<IP xmlns="" /> <!-- empty value will be replaced by IP defined in server config -->
|
||||
<PN xmlns="">0</PN> <!-- zero value will be replaced by Port defined in server config -->
|
||||
<VR xmlns="">S2X</VR>
|
||||
<DF xmlns="">true</DF>
|
||||
</MMOServerInfo>
|
||||
</Version>
|
||||
|
||||
<!-- Multiple <MMOServerInfo> child can be used instead of <ZoneList>
|
||||
to provide different MMO servers for different zones (<ZN> tag in <MMOServerInfo>).
|
||||
|
||||
|
@ -31,6 +31,15 @@ public class MMOConfigService {
|
||||
}
|
||||
}
|
||||
v.MMOServerDataArray = MMOServerDataList.ToArray();
|
||||
} else {
|
||||
foreach (var s in v.MMOServerDataArray) {
|
||||
if (String.IsNullOrEmpty(s.IPAddress)) {
|
||||
s.IPAddress = config.Value.MMOAdress;
|
||||
}
|
||||
if (s.Port == 0) {
|
||||
s.Port = config.Value.MMOPort;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user