refactor(vm): cleanup, trait docs, reenable interpreter tests
This commit is contained in:
@@ -1,3 +1,17 @@
|
||||
// =================================================
|
||||
// !! <-----> DO NOT MODIFY <-----> !!
|
||||
//
|
||||
// This module was automatically generated by an
|
||||
// xtask
|
||||
//
|
||||
// run
|
||||
//
|
||||
// `cargo xtask generate -m enums`
|
||||
//
|
||||
// from the workspace to regenerate
|
||||
//
|
||||
// =================================================
|
||||
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
use strum::{AsRefStr, Display, EnumIter, EnumProperty, EnumString, FromRepr};
|
||||
#[cfg(feature = "tsify")]
|
||||
@@ -23,8 +37,7 @@ use super::script::{LogicSlotType, LogicType};
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum AirConditioningMode {
|
||||
@@ -71,8 +84,7 @@ impl TryFrom<f64> for AirConditioningMode {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum AirControlMode {
|
||||
@@ -123,8 +135,7 @@ impl TryFrom<f64> for AirControlMode {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum ColorType {
|
||||
@@ -199,8 +210,7 @@ impl TryFrom<f64> for ColorType {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum DaylightSensorMode {
|
||||
@@ -250,8 +260,7 @@ impl TryFrom<f64> for DaylightSensorMode {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum ElevatorMode {
|
||||
@@ -298,8 +307,7 @@ impl TryFrom<f64> for ElevatorMode {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum EntityState {
|
||||
@@ -349,8 +357,7 @@ impl TryFrom<f64> for EntityState {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u32)]
|
||||
pub enum GasType {
|
||||
@@ -442,8 +449,7 @@ impl TryFrom<f64> for GasType {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum PowerMode {
|
||||
@@ -497,8 +503,7 @@ impl TryFrom<f64> for PowerMode {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum PrinterInstruction {
|
||||
@@ -570,8 +575,7 @@ impl TryFrom<f64> for PrinterInstruction {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum ReEntryProfile {
|
||||
@@ -626,8 +630,7 @@ impl TryFrom<f64> for ReEntryProfile {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum RobotMode {
|
||||
@@ -688,8 +691,7 @@ impl TryFrom<f64> for RobotMode {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum RocketMode {
|
||||
@@ -747,8 +749,7 @@ impl TryFrom<f64> for RocketMode {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum Class {
|
||||
@@ -908,8 +909,7 @@ impl TryFrom<f64> for Class {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum SorterInstruction {
|
||||
@@ -970,8 +970,7 @@ impl TryFrom<f64> for SorterInstruction {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum SortingClass {
|
||||
@@ -1044,8 +1043,7 @@ impl TryFrom<f64> for SortingClass {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum SoundAlert {
|
||||
@@ -1222,8 +1220,7 @@ impl TryFrom<f64> for SoundAlert {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum LogicTransmitterMode {
|
||||
@@ -1269,8 +1266,7 @@ impl TryFrom<f64> for LogicTransmitterMode {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum VentDirection {
|
||||
@@ -1314,8 +1310,7 @@ impl TryFrom<f64> for VentDirection {
|
||||
Serialize,
|
||||
Deserialize
|
||||
)]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify))]
|
||||
#[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
|
||||
#[strum(use_phf)]
|
||||
#[repr(u8)]
|
||||
pub enum ConditionOperation {
|
||||
|
||||
Reference in New Issue
Block a user