-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPartComponentModule.cs
More file actions
95 lines (79 loc) · 3.25 KB
/
PartComponentModule.cs
File metadata and controls
95 lines (79 loc) · 3.25 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// Decompiled with JetBrains decompiler
// Type: KSP.Sim.impl.PartComponentModule
// Assembly: Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 57799B60-A4CD-4DF8-B3C9-AEC811D65AED
// Assembly location: C:\KSP2\DLL_stripped\Assembly-CSharp.dll
// XML documentation location: C:\KSP2\DLL_stripped\Assembly-CSharp.xml
using KSP.Game;
using KSP.Sim.Converters;
using KSP.Sim.Definitions;
using KSP.Sim.ResourceSystem;
using System;
using System.Runtime.CompilerServices;
namespace KSP.Sim.impl
{
public abstract class PartComponentModule
{
protected bool _isEnabled;
public ModuleDataList DataModules;
[TypeConverterIgnore]
public abstract Type PartBehaviourModuleType
{
[MethodImpl(MethodImplOptions.NoInlining)] get => throw null;
}
[TypeConverterIgnore]
public PartComponent Part
{
[MethodImpl(MethodImplOptions.NoInlining)] get => throw null;
[MethodImpl(MethodImplOptions.NoInlining)] private set => throw null;
}
public GameInstance Game
{
[MethodImpl(MethodImplOptions.NoInlining)] get => throw null;
}
[MethodImpl(MethodImplOptions.NoInlining)]
internal void SetPart(PartComponent part) => throw null;
[MethodImpl(MethodImplOptions.NoInlining)]
internal void ClearPart() => throw null;
[TypeConverterIgnore]
public bool IsEnabled
{
[MethodImpl(MethodImplOptions.NoInlining)] get => throw null;
[MethodImpl(MethodImplOptions.NoInlining)] set => throw null;
}
protected ResourceFlowRequestBroker resourceFlowRequestBroker
{
[MethodImpl(MethodImplOptions.NoInlining)] get => throw null;
}
[MethodImpl(MethodImplOptions.NoInlining)]
public virtual void ThermalUpdate(double deltaTime) => throw null;
/// <summary>
/// This triggers when the Flight scene is first loaded. When loading a game it triggers for in-flight vessels also.
/// </summary>
[MethodImpl(MethodImplOptions.NoInlining)]
public virtual void OnStart(double universalTime) => throw null;
/// <summary>
/// This starts triggering when vessel is first placed in Flight. Does not trigger while still in OAB.
/// Keeps triggering in every scene once it's in Flight.
/// OnUpdate is called every frame.
[MethodImpl(MethodImplOptions.NoInlining)]
public virtual void OnUpdate(double universalTime, double deltaUniversalTime) => throw null;
/// <summary>
/// This triggers when the part is destroyed, when leaving the Flight scene, when exiting the game.
/// It... also triggers when Flight scene is loaded? (why? maybe it's triggered when leaving the OAB scene)
/// </summary>
/// <returns></returns>
/// <exception cref="Exception"></exception>
[MethodImpl(MethodImplOptions.NoInlining)]
public virtual void OnShutdown() => throw null;
/// <summary>
/// It appears this doesn't trigger at all?
/// </summary>
[MethodImpl(MethodImplOptions.NoInlining)]
public virtual void OnFinalizeCreation(double universalTime) => throw null;
[MethodImpl(MethodImplOptions.NoInlining)]
protected void RemoveResourceRequest(ResourceFlowRequestHandle handle) => throw null;
[MethodImpl(MethodImplOptions.NoInlining)]
protected PartComponentModule() => throw null;
}
}