A stable modding interface between Techblox and mods https://mod.exmods.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
507B

  1. using RobocraftX.Blocks;
  2. namespace TechbloxModdingAPI.Blocks
  3. {
  4. public record BlockComplexity(int Cpu, int Power)
  5. {
  6. public BlockComplexity(BlockComplexityComponent component) : this(component.cpu, component.power)
  7. {
  8. }
  9. public int Cpu { get; } = Cpu;
  10. public int Power { get; } = Power;
  11. public static implicit operator BlockComplexityComponent(BlockComplexity complexity) =>
  12. new() { cpu = complexity.Cpu, power = complexity.Power };
  13. }
  14. }