Space Engineers

Space Engineers

評價次數不足
Projector Block "Needed" Property For Programmable Block Integration
   
獎勵
加入最愛
已加入最愛
移除最愛
Type: Mod
Mod category: Production, Other
檔案大小
發佈於
更新時間
4.332 KB
2023 年 8 月 19 日 下午 7:09
2023 年 8 月 20 日 下午 9:07
3 項更新註記 (檢視)

訂閱以下載
Projector Block "Needed" Property For Programmable Block Integration

描述
Adds a "Needed" property to projectors containing a "ComponentID_1:Amount,ComponentID_N:Amount" formatted string that can be given to assemblers to produce the parts needed for the projected blueprint.

Ex:

```
int Index = 0;

foreach (var Pair in Data.Split(','))
{
var Split = Pair.Split(':');

var Name = Split[0];
var Amount = float.Parse(Split[1]);

MyDefinitionId ID;

if (MyDefinitionId.TryParse(Name, out ID))
{
Assembler.InsertQueueItem(Index++, ID, Amount);
}
}
```