forked from Angel-125/Pathfinder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestData.cs
More file actions
25 lines (22 loc) · 708 Bytes
/
TestData.cs
File metadata and controls
25 lines (22 loc) · 708 Bytes
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WildBlueIndustries
{
public class TestData : PartModule
{
[KSPEvent(guiName = "Add Science Data", active = true, guiActive = true)]
public void AddScienceData()
{
ModuleScienceLab sciLab = this.part.FindModuleImplementing<ModuleScienceLab>();
sciLab.dataStored = 100f;
}
[KSPEvent(guiName = "Add Science", active = true, guiActive = true)]
public void AddScience()
{
ModuleScienceLab sciLab = this.part.FindModuleImplementing<ModuleScienceLab>();
sciLab.storedScience = 100f;
}
}
}