-
Notifications
You must be signed in to change notification settings - Fork 2
/
IPlugin.cs
37 lines (31 loc) · 1.06 KB
/
IPlugin.cs
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
32
33
34
35
36
37
using UnityEngine;
namespace GoingMedievalModLauncher.plugins
{
public interface IPlugin
{
/// <summary>
/// The plugins initalization phase
/// </summary>
void initialize();
/** <summary>
* The start-method is called once after the corresponding gameObject has been enabled.
* For more details, see: https://docs.unity3d.com/ScriptReference/MonoBehaviour.Start.html
* </summary>
*/
void start(MonoBehaviour root);
/**
* <summary>
* The update-method is called every frame.
* For more details, see:https://docs.unity3d.com/ScriptReference/MonoBehaviour.Update.html
* </summary>
*/
void update(MonoBehaviour root);
/*
* <summary>
* The disable-method is called by the user or at the end of the game (quitting the application)
* This can be used for final operations before the application gets shutdown.
* </summary>
*/
void disable(MonoBehaviour root);
}
}