A stable modding interface between Techblox and mods https://mod.exmods.org/
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

44 lines
1.6KB

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