17 lines
No EOL
507 B
C#
17 lines
No EOL
507 B
C#
using RobocraftX.Blocks;
|
|
|
|
namespace TechbloxModdingAPI.Blocks
|
|
{
|
|
public record BlockComplexity(int Cpu, int Power)
|
|
{
|
|
public BlockComplexity(BlockComplexityComponent component) : this(component.cpu, component.power)
|
|
{
|
|
}
|
|
|
|
public int Cpu { get; } = Cpu;
|
|
public int Power { get; } = Power;
|
|
|
|
public static implicit operator BlockComplexityComponent(BlockComplexity complexity) =>
|
|
new() { cpu = complexity.Cpu, power = complexity.Power };
|
|
}
|
|
} |