rimworld-mod-template/Source/Main.cs
2021-08-14 19:34:49 +03:00

47 lines
1 KiB
C#

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using UnityEngine;
using Verse;
using Verse.AI;
using Verse.AI.Group;
using Verse.Sound;
using Verse.Noise;
using Verse.Grammar;
using RimWorld;
using RimWorld.Planet;
// using System.Reflection;
// using HarmonyLib;
namespace Template
{
[DefOf]
public class TemplateDefOf
{
public static LetterDef success_letter;
}
public class MyMapComponent : MapComponent
{
public MyMapComponent(Map map) : base(map){}
public override void FinalizeInit()
{
Messages.Message("Success", null, MessageTypeDefOf.PositiveEvent);
Find.LetterStack.ReceiveLetter("Success", TemplateDefOf.success_letter.description, TemplateDefOf.success_letter, null);
}
}
[StaticConstructorOnStartup]
public static class Start
{
static Start()
{
Log.Message("Mod template loaded successfully!");
}
}
}