testing terrainfeature

master
shoaib11120 2021-12-14 23:51:11 +05:30
parent 3d48a37f87
commit eaa626b335
2 changed files with 33 additions and 4 deletions

View File

@ -7,6 +7,9 @@ using StardewValley.Menus;
using Microsoft.Xna.Framework.Graphics;
using stardew_access.Patches;
using AutoHotkey.Interop;
using Microsoft.Xna.Framework;
using StardewValley.TerrainFeatures;
using System.Linq;
namespace stardew_access
{
@ -141,6 +144,32 @@ namespace stardew_access
{
Game1.pressUseToolButton();
}
/*if (Equals(e.Button, SButton.G))
{
if (Context.IsPlayerFree)
{
Dictionary<Vector2, Netcode.NetRef<TerrainFeature>> terrainFeature = Game1.currentLocation.terrainFeatures.FieldDict;
Vector2 gt = Game1.player.GetGrabTile();
StardewValley.Object obj = Game1.currentLocation.getObjectAtTile((int)gt.X, (int)gt.Y);
if(obj != null)
monitor.Log($"obj:{obj.name}", LogLevel.Debug);
if (terrainFeature.ContainsKey(gt))
{
Netcode.NetRef<TerrainFeature> terrain = terrainFeature[gt];
if (terrain.Get() is HoeDirt dirt)
{
monitor.Log($"here{(terrain.Get() as HoeDirt).crop.GetType()}", LogLevel.Debug);
monitor.Log("here2", LogLevel.Debug);
}
}
}
}*/
}
}

View File

@ -1,7 +1,7 @@
{
"Name": "Stardew Access",
"Author": "Mohammad Shoaib",
"Version": "1.0.1-beta",
"Version": "1.0.2-beta",
"Description": "An accessibility mod with screen reader support!",
"UniqueID": "shoaib.stardewaccess",
"EntryDll": "stardew-access.dll",