37 lines
906 B
C#
37 lines
906 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
using VRage;
|
|
using VRage.Game;
|
|
using VRage.Game.ModAPI.Ingame;
|
|
|
|
namespace IngameScript
|
|
{
|
|
class ComponentType
|
|
{
|
|
public readonly MyItemType ItemType;
|
|
public readonly MyDefinitionId BlueprintId;
|
|
|
|
public ComponentType(MyItemType itemType, MyDefinitionId blueprintId)
|
|
{
|
|
this.ItemType = itemType;
|
|
this.BlueprintId = blueprintId;
|
|
}
|
|
}
|
|
|
|
class ComponentQuantity
|
|
{
|
|
public readonly ComponentType ComponentType;
|
|
public readonly MyFixedPoint Quantity;
|
|
|
|
public ComponentQuantity(MyItemType itemType, MyDefinitionId blueprintId, MyFixedPoint quantity)
|
|
{
|
|
|
|
this.ComponentType = new ComponentType(itemType, blueprintId);
|
|
this.Quantity = quantity;
|
|
}
|
|
}
|
|
}
|