Stardew_Valley_Mods/GeneralMods/DebugSandBoxAndReferences/Class1.cs

44 lines
1.1 KiB
C#
Raw Normal View History

2018-06-09 02:40:23 +08:00
using DebugSandBoxAndReferences.Framework.Commands;
using Microsoft.Xna.Framework;
using StardewModdingAPI;
using StardewValley;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DebugSandBoxAndReferences
{
2018-06-09 02:40:23 +08:00
public class DebugSandBox : Mod
{
/*
* Notes:
* Game1.player will always target the appropriate player whether it is the FarmHand or the main player.
* Game1.MainPlayer will always target the host player.
*
*/
2018-06-09 02:40:23 +08:00
public override void Entry(IModHelper helper)
{
2018-06-09 02:40:23 +08:00
TimeCommands.registerCommands(helper);
}
2018-06-09 02:40:23 +08:00
/*
/// <summary>
/// This is how you will iterate across a new dictionary in stardew valley
/// </summary>
public void dictionaryAccess()
{
GameLocation location=Game1.getLocationFromName("Farm");
foreach (KeyValuePair<Vector2, StardewValley.Object> pair in location.objects.Pairs)
{
}
}
2018-06-09 02:40:23 +08:00
*/
}
}