Remove | 移除没用的东西
This commit is contained in:
parent
5ade8b97b8
commit
109ff00bb1
@ -181,9 +181,3 @@ pub struct DRComponentProps<'a, T> {
|
|||||||
// 附加属性
|
// 附加属性
|
||||||
pub attr: HashMap<&'a str, T>,
|
pub attr: HashMap<&'a str, T>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, T> DRComponentProps<'a, T> {
|
|
||||||
pub fn fetch_data(&self, name: &str) -> Option<&T> {
|
|
||||||
self.attr.get(name)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -555,8 +555,7 @@ impl SR1PartDataAttr {
|
|||||||
current_stage: Option<i32>,
|
current_stage: Option<i32>,
|
||||||
steps: Option<Vec<Vec<(IdType, bool)>>>,
|
steps: Option<Vec<Vec<(IdType, bool)>>>,
|
||||||
extension: Option<f64>,
|
extension: Option<f64>,
|
||||||
chute_x: Option<f64>,
|
chute_pos: (Option<f64>, Option<f64>),
|
||||||
chute_y: Option<f64>,
|
|
||||||
chute_height: Option<f64>,
|
chute_height: Option<f64>,
|
||||||
chute_angle: Option<f64>,
|
chute_angle: Option<f64>,
|
||||||
inflate: Option<bool>,
|
inflate: Option<bool>,
|
||||||
@ -572,8 +571,8 @@ impl SR1PartDataAttr {
|
|||||||
current_stage,
|
current_stage,
|
||||||
steps,
|
steps,
|
||||||
extension,
|
extension,
|
||||||
chute_x,
|
chute_x: chute_pos.0,
|
||||||
chute_y,
|
chute_y: chute_pos.1,
|
||||||
chute_height,
|
chute_height,
|
||||||
chute_angle,
|
chute_angle,
|
||||||
inflate,
|
inflate,
|
||||||
|
@ -15,14 +15,6 @@ mod xml_reader;
|
|||||||
|
|
||||||
use pyo3::prelude::*;
|
use pyo3::prelude::*;
|
||||||
|
|
||||||
enum LoadingState {
|
|
||||||
Initializing,
|
|
||||||
WaitingForStart,
|
|
||||||
PreStarting,
|
|
||||||
Running,
|
|
||||||
Cleaning,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[pyfunction]
|
#[pyfunction]
|
||||||
fn get_version_str() -> String {
|
fn get_version_str() -> String {
|
||||||
"0.3.0".to_string()
|
"0.3.0".to_string()
|
||||||
@ -34,9 +26,6 @@ fn test_call(py_obj: &PyAny) -> PyResult<bool> {
|
|||||||
Ok(true)
|
Ok(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A Python module implemented in Rust. The name of this function must match
|
|
||||||
/// the `lib.name` setting in the `Cargo.toml`, else Python will not be able to
|
|
||||||
/// import the module.
|
|
||||||
#[pymodule]
|
#[pymodule]
|
||||||
#[pyo3(name = "Difficult_Rocket_rs")]
|
#[pyo3(name = "Difficult_Rocket_rs")]
|
||||||
fn module_init(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
|
fn module_init(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
|
||||||
@ -54,7 +43,3 @@ fn module_init(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
|
|||||||
// m.add_class::<python::editor::EditorArea>()?;
|
// m.add_class::<python::editor::EditorArea>()?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
// pub fn run() {}
|
|
||||||
|
|
||||||
// fn init() {}
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
# All rights reserved
|
# All rights reserved
|
||||||
# -------------------------------
|
# -------------------------------
|
||||||
|
|
||||||
import warnings
|
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
Loading…
Reference in New Issue
Block a user