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
-
ObjectComponentBehaviourMonoBehaviourBaseUnityPluginTimbnCorePlugin
- Inherited Members
-
BaseUnityPlugin.InfoBaseUnityPlugin.ConfigMonoBehaviour.m_CancellationTokenSourceMonoBehaviour.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.destroyCancellationTokenMonoBehaviour.useGUILayoutMonoBehaviour.didStartMonoBehaviour.didAwakeBehaviour.enabledBehaviour.isActiveAndEnabledComponent.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.transformComponent.transformHandleComponent.gameObjectComponent.tagObject.kInstanceID_NoneObject.m_CachedPtrObject.OffsetOfInstanceIDInCPlusPlusObjectObject.objectIsNullMessageObject.cloneDestroyedMessageObject.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.nameObject.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
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
TestedGameVersion
The game version these mods were last verified against.
public const string TestedGameVersion = "1.010"
Field Value
Version
Core's own plugin version.
public const string Version = "2.0.0"
Field Value
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
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()