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.

BlockIdentifiers.cs 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Reflection;
  7. using Svelto.ECS;
  8. using RobocraftX.Common;
  9. using Harmony;
  10. namespace GamecraftModdingAPI.Blocks
  11. {
  12. /// <summary>
  13. /// ExclusiveGroups and IDs used with blocks
  14. /// </summary>
  15. public static class BlockIdentifiers
  16. {
  17. /// <summary>
  18. /// Blocks placed by the player
  19. /// </summary>
  20. public static ExclusiveGroup OWNED_BLOCKS { get { return CommonExclusiveGroups.OWNED_BLOCKS_GROUP; } }
  21. /// <summary>
  22. /// Extra parts used in functional blocks
  23. /// </summary>
  24. public static ExclusiveGroup FUNCTIONAL_BLOCK_PARTS { get { return CommonExclusiveGroups.FUNCTIONAL_BLOCK_PART_GROUP; } }
  25. /// <summary>
  26. /// Blocks which are disabled in Simulation mode
  27. /// </summary>
  28. public static ExclusiveGroup SIM_BLOCKS_DISABLED { get { return CommonExclusiveGroups.BLOCKS_DISABLED_IN_SIM_GROUP; } }
  29. //public static ExclusiveGroup SPAWN_POINTS { get { return CommonExclusiveGroups.SPAWN_POINTS_GROUP; } }
  30. //public static ExclusiveGroup SPAWN_POINTS_DISABLED { get { return CommonExclusiveGroups.SPAWN_POINTS_DISABLED_GROUP; } }
  31. /// <summary>
  32. /// The ID of the most recently placed block
  33. /// </summary>
  34. public static uint LatestBlockID {
  35. get
  36. {
  37. return ((uint) AccessTools.Field(typeof(CommonExclusiveGroups), "_nextBlockEntityID").GetValue(null)) - 1;
  38. }
  39. }
  40. }
  41. }