diff options
author | Zoryn Aaron <zoryn4163@gmail.com> | 2016-02-28 22:16:32 -0500 |
---|---|---|
committer | Zoryn Aaron <zoryn4163@gmail.com> | 2016-02-28 22:16:32 -0500 |
commit | 524dc9e002d86e81c1e38827a2303cc83b71eba7 (patch) | |
tree | e0b3762f89b1485ef54bdf05dac9b95fa02493a6 /StardewModdingAPI/Inheritance/Minigames | |
parent | bade4554d075d5dc2b1d9f81764dbb9bf361ddb3 (diff) | |
download | SMAPI-524dc9e002d86e81c1e38827a2303cc83b71eba7.tar.gz SMAPI-524dc9e002d86e81c1e38827a2303cc83b71eba7.tar.bz2 SMAPI-524dc9e002d86e81c1e38827a2303cc83b71eba7.zip |
expose some private fields for modding
Diffstat (limited to 'StardewModdingAPI/Inheritance/Minigames')
-rw-r--r-- | StardewModdingAPI/Inheritance/Minigames/SMinigameBase.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/StardewModdingAPI/Inheritance/Minigames/SMinigameBase.cs b/StardewModdingAPI/Inheritance/Minigames/SMinigameBase.cs new file mode 100644 index 00000000..5ce29d8d --- /dev/null +++ b/StardewModdingAPI/Inheritance/Minigames/SMinigameBase.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; + +namespace StardewModdingAPI.Inheritance.Minigames +{ + abstract class SMinigameBase : StardewValley.Minigames.IMinigame + { + public abstract bool tick(GameTime time); + + public abstract void receiveLeftClick(int x, int y, bool playSound = true); + + public abstract void leftClickHeld(int x, int y); + + public abstract void receiveRightClick(int x, int y, bool playSound = true); + + public abstract void releaseLeftClick(int x, int y); + + public abstract void releaseRightClick(int x, int y); + + public abstract void receiveKeyPress(Keys k); + + public abstract void receiveKeyRelease(Keys k); + + public abstract void draw(SpriteBatch b); + + public abstract void changeScreenSize(); + + public abstract void unload(); + + public abstract void receiveEventPoke(int data); + } +} |