mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
Add Shiftnet subscription metadata
This commit is contained in:
parent
fc55d4feec
commit
308006ff9d
2 changed files with 16 additions and 21 deletions
|
@ -173,28 +173,13 @@ namespace ShiftOS.WinForms.Applications
|
|||
/// <returns>Download speed in bytes.</returns>
|
||||
public static int GetDownloadSpeed()
|
||||
{
|
||||
switch (SaveSystem.CurrentSave.ShiftnetSubscription)
|
||||
{
|
||||
case 0:
|
||||
return 256/*B*/;
|
||||
case 1:
|
||||
return 1024 * 1024/*KB*/;
|
||||
case 2:
|
||||
return 1024 * 10240/*KB*/;
|
||||
case 3:
|
||||
return 1024 * 1024 * 1024/*MB*/;
|
||||
}
|
||||
return 256;
|
||||
return GetAllSubscriptions()[SaveSystem.CurrentSave.ShiftnetSubscription].DownloadSpeed;
|
||||
}
|
||||
|
||||
public static IEnumerable<ShiftOS.Objects.EngineShiftnetSubscription> GetAllSubscriptions()
|
||||
public static ShiftOS.Objects.EngineShiftnetSubscription[] GetAllSubscriptions()
|
||||
{
|
||||
//For now we'll have them hard-coded into the client but in future they'll be in the MUD.
|
||||
|
||||
foreach(var sub in JsonConvert.DeserializeObject<ShiftOS.Objects.EngineShiftnetSubscription[]>(Properties.Resources.ShiftnetServices))
|
||||
{
|
||||
yield return sub;
|
||||
}
|
||||
return JsonConvert.DeserializeObject<ShiftOS.Objects.EngineShiftnetSubscription[]>(Properties.Resources.ShiftnetServices);
|
||||
}
|
||||
|
||||
public static void StartDownload(Download down)
|
||||
|
|
|
@ -9,12 +9,22 @@ With Freebie Solutions from ShiftSoft, you'll be able to traverse the Shiftnet w
|
|||
Company: "ShiftSoft"
|
||||
},
|
||||
{
|
||||
Company: ""
|
||||
Company: "Shiftcast",
|
||||
Name: "NetXtreme Hyper Edition",
|
||||
CostPerMonth: 1500,
|
||||
DownloadSpeed: 524288, //512 kb/s
|
||||
Description: "It's time to supercharge your Shiftnet experience. With all the multimedia available, fast download speeds are a must on the Shiftnet. Start your subscription today for the low price of 1500 Codepoints and become a hyper-traveller today."
|
||||
},
|
||||
{
|
||||
|
||||
Company: "Plumb Corp.",
|
||||
Name: "youConnect",
|
||||
CostPerMonth: 4000,
|
||||
DownloadSpeed: 262144
|
||||
},
|
||||
{
|
||||
|
||||
Company: "theCorp",
|
||||
Name: "theNet",
|
||||
CostPerMonth: 2000,
|
||||
DownloadSpeed: 1048576,
|
||||
},
|
||||
]
|
Loading…
Reference in a new issue