-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStardewCustomsMod.cs
More file actions
31 lines (23 loc) · 821 Bytes
/
StardewCustomsMod.cs
File metadata and controls
31 lines (23 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using StardewModdingAPI;
namespace StardewCustoms
{
public class StardewCustomsMod : Mod
{
internal static StardewCustomsMod instance;
public override void Entry(IModHelper helper)
{
Log("StardewCustoms is operational.");
//store a static instance handle to the mod
instance = this;
//setup custom object support
CustomObjectHandler.Setup();
//to create a custom item:
//create a new instance of CustomObject, make sure to at least provide all the constructor variables
//then call CustomObjectHandler.RegisterCustomObject({custom instance})
}
public static void Log(string message)
{
instance.Monitor.Log(message);
}
}
}