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.4KB

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