2020-05-13 14:52:21 +00:00
|
|
|
|
using Svelto.ECS;
|
2019-12-17 01:55:52 +00:00
|
|
|
|
using RobocraftX.Common;
|
|
|
|
|
|
2020-05-03 19:31:09 +00:00
|
|
|
|
using HarmonyLib;
|
2021-04-19 01:13:00 +00:00
|
|
|
|
using Svelto.DataStructures;
|
2020-03-12 23:29:20 +00:00
|
|
|
|
|
2019-12-17 01:55:52 +00:00
|
|
|
|
namespace GamecraftModdingAPI.Blocks
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ExclusiveGroups and IDs used with blocks
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class BlockIdentifiers
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Blocks placed by the player
|
2021-04-19 01:13:00 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
public static FasterReadOnlyList<ExclusiveGroupStruct> OWNED_BLOCKS { get { return CommonExclusiveGroups.REAL_BLOCKS_GROUPS_DON_T_USE_IN_NEW_CODE; } }
|
2019-12-17 01:55:52 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Extra parts used in functional blocks
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static ExclusiveGroup FUNCTIONAL_BLOCK_PARTS { get { return CommonExclusiveGroups.FUNCTIONAL_BLOCK_PART_GROUP; } }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Blocks which are disabled in Simulation mode
|
|
|
|
|
/// </summary>
|
2020-07-10 22:30:58 +00:00
|
|
|
|
public static ExclusiveGroup SIM_BLOCKS_DISABLED { get { return CommonExclusiveGroups.DISABLED_JOINTS_IN_SIM_GROUP; } }
|
2019-12-17 01:55:52 +00:00
|
|
|
|
|
2020-05-14 15:42:34 +00:00
|
|
|
|
//public static ExclusiveGroup SPAWN_POINTS { get { return CommonExclusiveGroups.SPAWN_POINTS_GROUP; } }
|
2019-12-17 01:55:52 +00:00
|
|
|
|
|
2020-05-14 15:42:34 +00:00
|
|
|
|
//public static ExclusiveGroup SPAWN_POINTS_DISABLED { get { return CommonExclusiveGroups.SPAWN_POINTS_DISABLED_GROUP; } }
|
2019-12-17 01:55:52 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The ID of the most recently placed block
|
|
|
|
|
/// </summary>
|
2020-03-12 22:36:23 +00:00
|
|
|
|
public static uint LatestBlockID {
|
|
|
|
|
get
|
2020-07-10 22:30:58 +00:00
|
|
|
|
{ //Need the private field as the property increments itself
|
2020-03-12 23:29:20 +00:00
|
|
|
|
return ((uint) AccessTools.Field(typeof(CommonExclusiveGroups), "_nextBlockEntityID").GetValue(null)) - 1;
|
2020-03-12 22:36:23 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2019-12-17 01:55:52 +00:00
|
|
|
|
}
|
|
|
|
|
}
|