khanshoaib3 / stardew-access

An accessibility mod for Stardew Valley with screen reader and keyboard only support!
GNU General Public License v3.0
68 stars 20 forks source link

[refactor] Code Organisation #112

Closed khanshoaib3 closed 10 months ago

khanshoaib3 commented 1 year ago

Organize code in HarmonyPatches.cs and CustomCommands.cs

ParadoxiKat commented 1 year ago
khanshoaib3 commented 1 year ago

92 <- done

khanshoaib3 commented 1 year ago

Organize the custom commands the same way as patches i.e., create an ICustomCommand interface with Add() method and a CustomCommandManager class that adds all the custom commands.

khanshoaib3 commented 1 year ago

Maybe replace AccessTools.Method() with AccessTools.DeclaredMethod and use name of the method as string instead of using nameof().