2016-03-04 22:05:36 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace StardewModdingAPI.Events
|
|
|
|
|
{
|
|
|
|
|
public static class GraphicsEvents
|
|
|
|
|
{
|
|
|
|
|
public static event EventHandler Resize = delegate { };
|
|
|
|
|
public static event EventHandler DrawTick = delegate { };
|
|
|
|
|
|
|
|
|
|
public static void InvokeDrawTick()
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
DrawTick.Invoke(null, EventArgs.Empty);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
2016-03-05 14:32:04 +08:00
|
|
|
|
Log.Error("An exception occured in XNA DrawTick: " + ex.ToString());
|
2016-03-04 22:05:36 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void InvokeResize(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Resize.Invoke(sender, e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|