aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/OutOfBoxExperience.cs
diff options
context:
space:
mode:
authorwilliam341 <[email protected]>2017-05-28 12:37:00 -0700
committerGitHub <[email protected]>2017-05-28 12:37:00 -0700
commit771c20cfb3a703e0f1550fdcf9eb07b78298c944 (patch)
tree59cb532e15ebff313fdba2be264d78ec0033f407 /ShiftOS_TheReturn/OutOfBoxExperience.cs
parent496b0cbf8659c99203f48210fd39c572400ae623 (diff)
parentc7ba7d733c756d196f98dd4533289a1ef4db715f (diff)
downloadshiftos_thereturn-771c20cfb3a703e0f1550fdcf9eb07b78298c944.tar.gz
shiftos_thereturn-771c20cfb3a703e0f1550fdcf9eb07b78298c944.tar.bz2
shiftos_thereturn-771c20cfb3a703e0f1550fdcf9eb07b78298c944.zip
Merge pull request #1 from shiftos-game/master
welp, no longer a dev.
Diffstat (limited to 'ShiftOS_TheReturn/OutOfBoxExperience.cs')
-rw-r--r--ShiftOS_TheReturn/OutOfBoxExperience.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/ShiftOS_TheReturn/OutOfBoxExperience.cs b/ShiftOS_TheReturn/OutOfBoxExperience.cs
index 6ed9e49..eb8e61d 100644
--- a/ShiftOS_TheReturn/OutOfBoxExperience.cs
+++ b/ShiftOS_TheReturn/OutOfBoxExperience.cs
@@ -45,17 +45,17 @@ namespace ShiftOS.Engine
public static void Init(IOobe oobe)
{
- _oobe = oobe;
+ _oobe = oobe; // takes the oobe and makes it an IOobe
}
public static void Start(Save save)
{
-
+ //if its null then FUCK YOU DID THE WRONG THING
if (_oobe == null)
throw new InvalidOperationException("OOBE frontend not activated! This function can't be used! Please use OutOfBoxExperience.Init() passing an IOobe-implementing object to start the OOBE frontend.");
- _oobe.StartShowing(save);
+ _oobe.StartShowing(save); //tells the save data to start showing the oobe
}
@@ -64,7 +64,7 @@ namespace ShiftOS.Engine
{
Desktop.InvokeOnWorkerThread(new Action(() =>
{
- _oobe.PromptForLogin();
+ _oobe.PromptForLogin(); //prompts for login, what did you expect
}));
}
@@ -72,12 +72,13 @@ namespace ShiftOS.Engine
{
Desktop.InvokeOnWorkerThread(new Action(() =>
{
- _oobe.ShowSaveTransfer(save);
+ _oobe.ShowSaveTransfer(save); //triggers save transfer if not done already
}));
}
}
+ //triggers all the above events
public interface IOobe
{
void StartShowing(Save save);