Table of Contents

Class TimbnCorePlugin

Namespace
Timbn.GraveyardKeeperTwo.Core
Assembly
Timbn.GraveyardKeeperTwo.Core.dll

The loaded Core plugin. Checks the game version and wires the game's events to the framework's save, talk, quest, potion, NPC and main menu upkeep.

[BepInPlugin("Timbn.GraveyardKeeperTwo.Core", "Timbn Core", "2.0.0")]
public sealed class TimbnCorePlugin : TimbnFrameworkPlugin<TimbnCorePlugin>
Inheritance
Object
Component
Behaviour
MonoBehaviour
BaseUnityPlugin
TimbnCorePlugin
Inherited Members
BaseUnityPlugin.Info
BaseUnityPlugin.Config
MonoBehaviour.m_CancellationTokenSource
MonoBehaviour.RaiseCancellation()
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.Internal_CancelInvokeAll(MonoBehaviour)
MonoBehaviour.Internal_IsInvokingAll(MonoBehaviour)
MonoBehaviour.IsObjectMonoBehaviour(Object)
MonoBehaviour.StopCoroutineManaged(Coroutine)
MonoBehaviour.GetScriptClassName()
MonoBehaviour.OnCancellationTokenCreated()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.didStart
MonoBehaviour.didAwake
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.GetComponentIndex()
Component.CompareTag(TagHandle)
Component.transform
Component.transformHandle
Component.gameObject
Component.tag
Object.kInstanceID_None
Object.m_CachedPtr
Object.OffsetOfInstanceIDInCPlusPlusObject
Object.objectIsNullMessage
Object.cloneDestroyedMessage
Object.GetEntityId()
Object.GetInstanceID()
Object.GetHashCode()
Object.CompareBaseObjects(Object, Object)
Object.EnsureRunningOnMainThread()
Object.IsNativeObjectAlive(Object)
Object.GetCachedPtr()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.ToString()
Object.GetOffsetOfInstanceIDInCPlusPlusObject()
Object.CurrentThreadIsMainThread()
Object.Internal_CloneSingle(Object)
Object.Internal_CloneSingleWithScene(Object, Scene)
Object.Internal_CloneSingleWithParams(Object, InstantiateParameters)
Object.Internal_InstantiateSingleWithParams(Object, Vector3, Quaternion, InstantiateParameters)
Object.Internal_InstantiateSingle(Object, Vector3, Quaternion)
Object.Internal_InstantiateSingleWithParent(Object, Transform, Vector3, Quaternion)
Object.ToString(Object)
Object.GetName()
Object.IsPersistent(Object)
Object.DoesObjectWithInstanceIDExist(EntityId)
Object.FindObjectFromInstanceID(EntityId)
Object.ForceLoadFromInstanceID(EntityId)
Object.MarkDirty()
Object.DoesObjectWithInstanceIDExist_Injected(ref EntityId)
Object.FindObjectFromInstanceID_Injected(ref EntityId)
Object.ForceLoadFromInstanceID_Injected(ref EntityId)
Object.name
Object.hideFlags

Fields

Guid

Core's plugin guid, for a mod's BepInDependency attribute so BepInEx loads Core first.

public const string Guid = "Timbn.GraveyardKeeperTwo.Core"

Field Value

string

TestedGameBuild

The GameBuild of TestedGameVersion. It tells a silent hotfix apart from the build these mods were verified on, since a hotfix can ship without a new version string.

public const string TestedGameBuild = "5ec8094e4c33"

Field Value

string

TestedGameVersion

The game version these mods were last verified against.

public const string TestedGameVersion = "1.010"

Field Value

string

Version

Core's own plugin version.

public const string Version = "2.0.0"

Field Value

string

Properties

GameBuild

A short id for the running game's code, the first twelve hex digits of Assembly-CSharp's module version id. It changes whenever the game's scripts are rebuilt, for example "06096414ba3b" on 1.010 (Steam build 25907946).

public static string GameBuild { get; }

Property Value

string

Methods

OnAwake()

Runs once at startup if the plugin is enabled, after config is bound and patches are applied.

protected override void OnAwake()

OnUnload()

Runs when the plugin unloads, before Core removes everything the plugin registered and its Harmony patches. Put back anything the plugin changed in the game directly, such as a value it set or a GameObject it created. Registrations made through Events, Settings, Potions, Quests, Dialog, Text, Sprites, Balance, MainMenu, Player, Clock, UI, Saves, Npcs, Audio, Models, Stations, Crafts and Techs are cleaned up for you, and cleanup that belongs to a save is better placed in Events.SaveClosed, which also runs on the way to the main menu.

protected override void OnUnload()

OnUpdate()

Runs every frame while the plugin is enabled.

protected override void OnUpdate()