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

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