diff options
| author | Michael VanOverbeek <[email protected]> | 2017-05-21 13:05:31 +0000 |
|---|---|---|
| committer | Michael VanOverbeek <[email protected]> | 2017-05-21 13:05:31 +0000 |
| commit | 68785f73f027b9dd4555b9f1ab7a22a1ca8794f8 (patch) | |
| tree | f0c6dea13195bc516f90c2aa29cf85fa1488f6cf /ShiftOS_TheReturn/ShiftnetSite.cs | |
| parent | 76b54853ba726179f9fddb30c6f838991b7aa71a (diff) | |
| parent | 9999324bd7751f536741c108322766421dae1a52 (diff) | |
| download | shiftos_thereturn-68785f73f027b9dd4555b9f1ab7a22a1ca8794f8.tar.gz shiftos_thereturn-68785f73f027b9dd4555b9f1ab7a22a1ca8794f8.tar.bz2 shiftos_thereturn-68785f73f027b9dd4555b9f1ab7a22a1ca8794f8.zip | |
Merge branch 'master' of https://github.com/shiftos-game/ShiftOS
I should hire Ash Ketchum to do this for me. He'd do a better job.
Diffstat (limited to 'ShiftOS_TheReturn/ShiftnetSite.cs')
| -rw-r--r-- | ShiftOS_TheReturn/ShiftnetSite.cs | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/ShiftnetSite.cs b/ShiftOS_TheReturn/ShiftnetSite.cs index 5460171..07b4698 100644 --- a/ShiftOS_TheReturn/ShiftnetSite.cs +++ b/ShiftOS_TheReturn/ShiftnetSite.cs @@ -6,13 +6,34 @@ using System.Threading.Tasks; namespace ShiftOS.Engine { + /// <summary> + /// Interface for creating a Shiftnet website. + /// </summary> public interface IShiftnetSite { + /// <summary> + /// Called when the page is loaded. Perform data population here. + /// </summary> void Setup(); + + /// <summary> + /// Occurs when a ShiftOS skin is loaded. + /// </summary> void OnSkinLoad(); + + /// <summary> + /// Occurs when a Shiftorium upgrade is installed. + /// </summary> void OnUpgrade(); + /// <summary> + /// Invoke this to navigate the parent browser to a specified Shiftnet URL. + /// </summary> event Action<string> GoToUrl; + + /// <summary> + /// Invoke this to tell the parent browser to navigate to the previous page. + /// </summary> event Action GoBack; } @@ -24,14 +45,35 @@ namespace ShiftOS.Engine } + /// <summary> + /// Interface for creating a Shiftnet client. + /// </summary> public interface IShiftnetClient { + /// <summary> + /// Navigates the client to a specified Shiftnet URL. + /// </summary> + /// <param name="url">The URL to navigate to.</param> void NavigateToUrl(string url); + + /// <summary> + /// Refreshes the current page. + /// </summary> void RefreshSite(); } + /// <summary> + /// Marks this class as a Shiftnet website. + /// </summary> + [AttributeUsage(AttributeTargets.Class, AllowMultiple =false)] public class ShiftnetSiteAttribute : Attribute { + /// <summary> + /// Creates a new instance of the <see cref="ShiftnetSiteAttribute"/> class. + /// </summary> + /// <param name="url">The URL that links to this site</param> + /// <param name="name">The name of this site</param> + /// <param name="description">The description of this site</param> public ShiftnetSiteAttribute(string url, string name, string description) { Url = url; @@ -39,8 +81,19 @@ namespace ShiftOS.Engine Description = description; } + /// <summary> + /// Gets the Shiftnet URL for this site. + /// </summary> public string Url { get; private set; } + + /// <summary> + /// Gets the name of this website. + /// </summary> public string Name { get; private set; } + + /// <summary> + /// Gets the description of this website. + /// </summary> public string Description { get; private set; } } } |
