summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Inheritance/Menus/SBobberBar.cs
diff options
context:
space:
mode:
authorZoryn Aaron <zoryn4163@gmail.com>2016-03-27 01:09:09 -0400
committerZoryn Aaron <zoryn4163@gmail.com>2016-03-27 01:09:09 -0400
commit12bf4fd843be26f89b5fe3415aeec3055c54d786 (patch)
tree9dd87794562d797ec8291fd00af0409b406467df /StardewModdingAPI/Inheritance/Menus/SBobberBar.cs
parent6f64d448f937a9a2abab4a75e81491410ddbf226 (diff)
downloadSMAPI-12bf4fd843be26f89b5fe3415aeec3055c54d786.tar.gz
SMAPI-12bf4fd843be26f89b5fe3415aeec3055c54d786.tar.bz2
SMAPI-12bf4fd843be26f89b5fe3415aeec3055c54d786.zip
someone needs to generate xml doc info im not fuck that shit
Diffstat (limited to 'StardewModdingAPI/Inheritance/Menus/SBobberBar.cs')
-rw-r--r--StardewModdingAPI/Inheritance/Menus/SBobberBar.cs29
1 files changed, 14 insertions, 15 deletions
diff --git a/StardewModdingAPI/Inheritance/Menus/SBobberBar.cs b/StardewModdingAPI/Inheritance/Menus/SBobberBar.cs
index ecfc0c38..ddac33c6 100644
--- a/StardewModdingAPI/Inheritance/Menus/SBobberBar.cs
+++ b/StardewModdingAPI/Inheritance/Menus/SBobberBar.cs
@@ -7,20 +7,28 @@ namespace StardewModdingAPI.Inheritance.Menus
{
public class SBobberBar : BobberBar
{
+ /// <summary>
+ /// DO NOT CONSTRUCT THIS CLASS
+ /// To retrieve an instance of SBobberBar, use SBobberBar.ConstructFromBaseClass()
+ /// </summary>
+ public SBobberBar(int whichFish, float fishSize, bool treasure, int bobber) : base(whichFish, fishSize, treasure, bobber)
+ {
+ }
+
public BobberBar BaseBobberBar { get; private set; }
/// <summary>
- /// The green rectangle bar that moves up and down
+ /// The green rectangle bar that moves up and down
/// </summary>
public float bobberPosition
{
get { return (float) GetBaseFieldInfo("bobberPosition").GetValue(BaseBobberBar); }
set { GetBaseFieldInfo("bobberPosition").SetValue(BaseBobberBar, value); }
}
-
+
/// <summary>
- /// The green bar on the right. How close to catching the fish you are
- /// Range: 0 - 1 | 1 = catch, 0 = fail
+ /// The green bar on the right. How close to catching the fish you are
+ /// Range: 0 - 1 | 1 = catch, 0 = fail
/// </summary>
public float distanceFromCatching
{
@@ -137,7 +145,7 @@ namespace StardewModdingAPI.Inheritance.Menus
}
/// <summary>
- /// Whether or not a treasure chest appears
+ /// Whether or not a treasure chest appears
/// </summary>
public bool treasure
{
@@ -266,20 +274,11 @@ namespace StardewModdingAPI.Inheritance.Menus
public static SBobberBar ConstructFromBaseClass(BobberBar baseClass)
{
- SBobberBar b = new SBobberBar(0, 0, false, 0);
+ var b = new SBobberBar(0, 0, false, 0);
b.BaseBobberBar = baseClass;
return b;
}
- /// <summary>
- /// DO NOT CONSTRUCT THIS CLASS
- /// To retrieve an instance of SBobberBar, use SBobberBar.ConstructFromBaseClass()
- /// </summary>
- public SBobberBar(int whichFish, float fishSize, bool treasure, int bobber) : base(whichFish, fishSize, treasure, bobber)
- {
-
- }
-
public static FieldInfo[] GetPrivateFields()
{
return typeof (BobberBar).GetFields(BindingFlags.Instance | BindingFlags.NonPublic);