Files
ArachnaeSwarm/Source/ArachnaeSwarm/Buildings/Building_ResearchBlueprintReader/ResearchBlueprintData.cs
2025-12-17 17:32:25 +08:00

40 lines
1.1 KiB
C#

// File: Data/ResearchBlueprintData.cs
using RimWorld;
using System;
using Verse;
namespace ArachnaeSwarm
{
// 研究锁定信息
public class ResearchBlueprintLockInfo : IExposable
{
public ResearchProjectDef storedProject;
public Building_ResearchBlueprintReader storingBuilding;
public int storeTime;
public int mapIndex;
public void ExposeData()
{
Scribe_Defs.Look(ref storedProject, "storedProject");
Scribe_References.Look(ref storingBuilding, "storingBuilding");
Scribe_Values.Look(ref storeTime, "storeTime", 0);
Scribe_Values.Look(ref mapIndex, "mapIndex", 0);
}
}
// 研究完成请求
public class ResearchCompletionRequest : IExposable
{
public Building_ResearchBlueprintReader reader;
public ResearchProjectDef project;
public int timestamp;
public void ExposeData()
{
Scribe_References.Look(ref reader, "reader");
Scribe_Defs.Look(ref project, "project");
Scribe_Values.Look(ref timestamp, "timestamp", 0);
}
}
}