33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
|
using StardewModdingAPI;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using EventSystem;
|
|||
|
using StardewValley;
|
|||
|
using EventSystem.Framework.FunctionEvents;
|
|||
|
using EventSystem.Framework.Information;
|
|||
|
using Microsoft.Xna.Framework;
|
|||
|
|
|||
|
namespace SundropMapEvents
|
|||
|
{
|
|||
|
public class Class1 :Mod
|
|||
|
{
|
|||
|
|
|||
|
public static IModHelper ModHelper;
|
|||
|
public static IMonitor ModMonitor;
|
|||
|
public override void Entry(IModHelper helper)
|
|||
|
{
|
|||
|
ModHelper = this.Helper;
|
|||
|
ModMonitor = this.Monitor;
|
|||
|
StardewModdingAPI.Events.SaveEvents.AfterLoad += SaveEvents_AfterLoad;
|
|||
|
}
|
|||
|
|
|||
|
private void SaveEvents_AfterLoad(object sender, EventArgs e)
|
|||
|
{
|
|||
|
EventSystem.EventSystem.eventManager.addEvent(Game1.getLocationFromName("BusStop"), new EventSystem.Framework.Events.WarpEvent("toRR", Game1.getLocationFromName("BusStop"), new Vector2(6, 11), new PlayerEvents(null, null), new WarpInformation("BusStop", 10, 12, 2, false)));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|