SMAPI/StardewModdingAPI/Inheritance/Minigames/SMinigameBase.cs

35 lines
970 B
C#
Raw Normal View History

2016-03-23 08:36:04 +08:00
using Microsoft.Xna.Framework;
2016-02-29 11:16:32 +08:00
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
2016-03-23 08:36:04 +08:00
using StardewValley.Minigames;
2016-02-29 11:16:32 +08:00
namespace StardewModdingAPI.Inheritance.Minigames
{
2016-03-23 08:36:04 +08:00
abstract class SMinigameBase : IMinigame
2016-02-29 11:16:32 +08:00
{
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);
}
}