diff --git a/protocol/cpp/include/solarxr_protocol/generated/all_generated.h b/protocol/cpp/include/solarxr_protocol/generated/all_generated.h index 2d3322c4..2812b85c 100644 --- a/protocol/cpp/include/solarxr_protocol/generated/all_generated.h +++ b/protocol/cpp/include/solarxr_protocol/generated/all_generated.h @@ -577,11 +577,12 @@ enum class BodyPart : uint8_t { UPPER_CHEST = 22, LEFT_HIP = 23, RIGHT_HIP = 24, + PLAYSPACE = 25, MIN = NONE, - MAX = RIGHT_HIP + MAX = PLAYSPACE }; -inline const BodyPart (&EnumValuesBodyPart())[23] { +inline const BodyPart (&EnumValuesBodyPart())[24] { static const BodyPart values[] = { BodyPart::NONE, BodyPart::HEAD, @@ -605,13 +606,14 @@ inline const BodyPart (&EnumValuesBodyPart())[23] { BodyPart::RIGHT_SHOULDER, BodyPart::UPPER_CHEST, BodyPart::LEFT_HIP, - BodyPart::RIGHT_HIP + BodyPart::RIGHT_HIP, + BodyPart::PLAYSPACE }; return values; } inline const char * const *EnumNamesBodyPart() { - static const char * const names[26] = { + static const char * const names[27] = { "NONE", "HEAD", "NECK", @@ -637,13 +639,14 @@ inline const char * const *EnumNamesBodyPart() { "UPPER_CHEST", "LEFT_HIP", "RIGHT_HIP", + "PLAYSPACE", nullptr }; return names; } inline const char *EnumNameBodyPart(BodyPart e) { - if (flatbuffers::IsOutRange(e, BodyPart::NONE, BodyPart::RIGHT_HIP)) return ""; + if (flatbuffers::IsOutRange(e, BodyPart::NONE, BodyPart::PLAYSPACE)) return ""; const size_t index = static_cast(e); return EnumNamesBodyPart()[index]; } diff --git a/protocol/java/src/solarxr_protocol/datatypes/BodyPart.java b/protocol/java/src/solarxr_protocol/datatypes/BodyPart.java index b7ba54d1..69e84107 100644 --- a/protocol/java/src/solarxr_protocol/datatypes/BodyPart.java +++ b/protocol/java/src/solarxr_protocol/datatypes/BodyPart.java @@ -32,8 +32,9 @@ private BodyPart() { } public static final int UPPER_CHEST = 22; public static final int LEFT_HIP = 23; public static final int RIGHT_HIP = 24; + public static final int PLAYSPACE = 25; - public static final String[] names = { "NONE", "HEAD", "NECK", "CHEST", "WAIST", "HIP", "LEFT_UPPER_LEG", "RIGHT_UPPER_LEG", "LEFT_LOWER_LEG", "RIGHT_LOWER_LEG", "LEFT_FOOT", "RIGHT_FOOT", "", "", "LEFT_LOWER_ARM", "RIGHT_LOWER_ARM", "LEFT_UPPER_ARM", "RIGHT_UPPER_ARM", "LEFT_HAND", "RIGHT_HAND", "LEFT_SHOULDER", "RIGHT_SHOULDER", "UPPER_CHEST", "LEFT_HIP", "RIGHT_HIP", }; + public static final String[] names = { "NONE", "HEAD", "NECK", "CHEST", "WAIST", "HIP", "LEFT_UPPER_LEG", "RIGHT_UPPER_LEG", "LEFT_LOWER_LEG", "RIGHT_LOWER_LEG", "LEFT_FOOT", "RIGHT_FOOT", "", "", "LEFT_LOWER_ARM", "RIGHT_LOWER_ARM", "LEFT_UPPER_ARM", "RIGHT_UPPER_ARM", "LEFT_HAND", "RIGHT_HAND", "LEFT_SHOULDER", "RIGHT_SHOULDER", "UPPER_CHEST", "LEFT_HIP", "RIGHT_HIP", "PLAYSPACE", }; public static String name(int e) { return names[e]; } } diff --git a/protocol/kotlin/src/solarxr_protocol/datatypes/BodyPart.kt b/protocol/kotlin/src/solarxr_protocol/datatypes/BodyPart.kt index 14734b12..76e15fd0 100644 --- a/protocol/kotlin/src/solarxr_protocol/datatypes/BodyPart.kt +++ b/protocol/kotlin/src/solarxr_protocol/datatypes/BodyPart.kt @@ -32,7 +32,8 @@ class BodyPart private constructor() { const val UPPERCHEST: UByte = 22u const val LEFTHIP: UByte = 23u const val RIGHTHIP: UByte = 24u - val names : Array = arrayOf("NONE", "HEAD", "NECK", "CHEST", "WAIST", "HIP", "LEFT_UPPER_LEG", "RIGHT_UPPER_LEG", "LEFT_LOWER_LEG", "RIGHT_LOWER_LEG", "LEFT_FOOT", "RIGHT_FOOT", "", "", "LEFT_LOWER_ARM", "RIGHT_LOWER_ARM", "LEFT_UPPER_ARM", "RIGHT_UPPER_ARM", "LEFT_HAND", "RIGHT_HAND", "LEFT_SHOULDER", "RIGHT_SHOULDER", "UPPER_CHEST", "LEFT_HIP", "RIGHT_HIP") + const val PLAYSPACE: UByte = 25u + val names : Array = arrayOf("NONE", "HEAD", "NECK", "CHEST", "WAIST", "HIP", "LEFT_UPPER_LEG", "RIGHT_UPPER_LEG", "LEFT_LOWER_LEG", "RIGHT_LOWER_LEG", "LEFT_FOOT", "RIGHT_FOOT", "", "", "LEFT_LOWER_ARM", "RIGHT_LOWER_ARM", "LEFT_UPPER_ARM", "RIGHT_UPPER_ARM", "LEFT_HAND", "RIGHT_HAND", "LEFT_SHOULDER", "RIGHT_SHOULDER", "UPPER_CHEST", "LEFT_HIP", "RIGHT_HIP", "PLAYSPACE") @JvmStatic fun name(e: Int) : String = names[e] } diff --git a/protocol/rust/src/generated/solarxr_protocol/datatypes/body_part_generated.rs b/protocol/rust/src/generated/solarxr_protocol/datatypes/body_part_generated.rs index 2f988983..91cbf120 100644 --- a/protocol/rust/src/generated/solarxr_protocol/datatypes/body_part_generated.rs +++ b/protocol/rust/src/generated/solarxr_protocol/datatypes/body_part_generated.rs @@ -12,10 +12,10 @@ use super::*; #[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")] pub const ENUM_MIN_BODY_PART: u8 = 0; #[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")] -pub const ENUM_MAX_BODY_PART: u8 = 24; +pub const ENUM_MAX_BODY_PART: u8 = 25; #[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")] #[allow(non_camel_case_types)] -pub const ENUM_VALUES_BODY_PART: [BodyPart; 23] = [ +pub const ENUM_VALUES_BODY_PART: [BodyPart; 24] = [ BodyPart::NONE, BodyPart::HEAD, BodyPart::NECK, @@ -39,6 +39,7 @@ pub const ENUM_VALUES_BODY_PART: [BodyPart; 23] = [ BodyPart::UPPER_CHEST, BodyPart::LEFT_HIP, BodyPart::RIGHT_HIP, + BodyPart::PLAYSPACE, ]; /// Different parts of the body. Maps to each possible non-tracker bone in the skeleton. @@ -71,9 +72,10 @@ impl BodyPart { pub const UPPER_CHEST: Self = Self(22); pub const LEFT_HIP: Self = Self(23); pub const RIGHT_HIP: Self = Self(24); + pub const PLAYSPACE: Self = Self(25); pub const ENUM_MIN: u8 = 0; - pub const ENUM_MAX: u8 = 24; + pub const ENUM_MAX: u8 = 25; pub const ENUM_VALUES: &'static [Self] = &[ Self::NONE, Self::HEAD, @@ -98,6 +100,7 @@ impl BodyPart { Self::UPPER_CHEST, Self::LEFT_HIP, Self::RIGHT_HIP, + Self::PLAYSPACE, ]; /// Returns the variant's name or "" if unknown. pub fn variant_name(self) -> Option<&'static str> { @@ -125,6 +128,7 @@ impl BodyPart { Self::UPPER_CHEST => Some("UPPER_CHEST"), Self::LEFT_HIP => Some("LEFT_HIP"), Self::RIGHT_HIP => Some("RIGHT_HIP"), + Self::PLAYSPACE => Some("PLAYSPACE"), _ => None, } } diff --git a/protocol/typescript/src/solarxr-protocol/datatypes/body-part.ts b/protocol/typescript/src/solarxr-protocol/datatypes/body-part.ts index 66bfe303..ef49e77f 100644 --- a/protocol/typescript/src/solarxr-protocol/datatypes/body-part.ts +++ b/protocol/typescript/src/solarxr-protocol/datatypes/body-part.ts @@ -27,5 +27,6 @@ export enum BodyPart { RIGHT_SHOULDER = 21, UPPER_CHEST = 22, LEFT_HIP = 23, - RIGHT_HIP = 24 + RIGHT_HIP = 24, + PLAYSPACE = 25 } diff --git a/schema/datatypes/datatypes.fbs b/schema/datatypes/datatypes.fbs index 189252d9..e04d72ba 100644 --- a/schema/datatypes/datatypes.fbs +++ b/schema/datatypes/datatypes.fbs @@ -116,6 +116,7 @@ enum BodyPart: uint8 { UPPER_CHEST = 22, LEFT_HIP = 23, RIGHT_HIP = 24, + PLAYSPACE = 25, } enum TrackerStatus: uint8 {