2018-02-24 05:55:51 +08:00
|
|
|
using System;
|
2018-12-30 18:00:05 +08:00
|
|
|
using EventSystem.Framework.Events;
|
2018-02-24 05:55:51 +08:00
|
|
|
using EventSystem.Framework.FunctionEvents;
|
|
|
|
using EventSystem.Framework.Information;
|
|
|
|
using Microsoft.Xna.Framework;
|
2018-12-30 18:00:05 +08:00
|
|
|
using StardewModdingAPI;
|
|
|
|
using StardewValley;
|
2018-02-24 05:55:51 +08:00
|
|
|
namespace SundropMapEvents
|
|
|
|
{
|
2018-12-30 18:00:05 +08:00
|
|
|
public class Class1 : Mod
|
2018-02-24 05:55:51 +08:00
|
|
|
{
|
|
|
|
public static IModHelper ModHelper;
|
|
|
|
public static IMonitor ModMonitor;
|
2018-12-30 18:00:05 +08:00
|
|
|
|
|
|
|
/// <summary>The mod entry point, called after the mod is first loaded.</summary>
|
|
|
|
/// <param name="helper">Provides simplified APIs for writing mods.</param>
|
2018-02-24 05:55:51 +08:00
|
|
|
public override void Entry(IModHelper helper)
|
|
|
|
{
|
|
|
|
ModHelper = this.Helper;
|
|
|
|
ModMonitor = this.Monitor;
|
2018-12-30 18:00:05 +08:00
|
|
|
StardewModdingAPI.Events.SaveEvents.AfterLoad += this.SaveEvents_AfterLoad;
|
2018-02-24 05:55:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
private void SaveEvents_AfterLoad(object sender, EventArgs e)
|
|
|
|
{
|
2018-03-06 12:46:45 +08:00
|
|
|
EventSystem.EventSystem.eventManager.addEvent(Game1.getLocationFromName("BusStop"), new WarpEvent("toRR", Game1.getLocationFromName("BusStop"), new Vector2(6, 11), new PlayerEvents(null, null), new WarpInformation("BusStop", 10, 12, 2, false)));
|
2018-12-30 18:00:05 +08:00
|
|
|
EventSystem.EventSystem.eventManager.addEvent(Game1.getLocationFromName("BusStop"), new DialogueDisplayEvent("Hello.", Game1.getLocationFromName("BusStop"), new Vector2(10, 13), new MouseButtonEvents(null, null), new MouseEntryLeaveEvent(null, null), "Hello there!"));
|
2018-02-24 05:55:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|