This commit is contained in:
shenjack 2023-02-12 15:17:50 +08:00
parent a48a5ddec4
commit 32ed22254c
3 changed files with 26 additions and 5 deletions

View File

@ -12,7 +12,7 @@
<a href="https://996.icu"><img src="https://img.shields.io/badge/link-996.icu-red.svg" alt="996.icu" /></a> <a href="https://996.icu"><img src="https://img.shields.io/badge/link-996.icu-red.svg" alt="996.icu" /></a>
[![Generic badge](https://img.shields.io/badge/SemVer-2.0.0-blue.svg)](https://Semver.org/) [![Generic badge](https://img.shields.io/badge/SemVer-2.0.0-blue.svg)](https://Semver.org/)
[![Generic badge](https://img.shields.io/badge/编写于_Python_版本-3.8.10-blue.svg)](https://Python.org) [![Generic badge](https://img.shields.io/badge/编写于_Python_版本-3.8.10-blue.svg)](https://Python.org)
[![Generic badge](https://img.shields.io/badge/编写于_Pyglet_版本-2.0.2.1-blue.svg)](https://pyglet.org) [![Generic badge](https://img.shields.io/badge/编写于_Pyglet_版本-2.0.4-blue.svg)](https://pyglet.org)
[![Generic badge](https://img.shields.io/badge/Python-_3.8_|_3.9_|_3.10_|_3.11_-blue.svg)](https://Python.org) [![Generic badge](https://img.shields.io/badge/Python-_3.8_|_3.9_|_3.10_|_3.11_-blue.svg)](https://Python.org)
## 版本 ## 版本
@ -55,7 +55,7 @@
- `rtoml` - `rtoml`
- `tomlkit` - `tomlkit`
- `pyglet` (已经内置 V2.0.2.1 路径:`./libs/pyglet`) - `pyglet` (已经内置 V2.0.4 路径:`./libs/pyglet`)
- `xmltodict` (已经内置 V0.12.0 路径:`./libs/xmltodict`) - `xmltodict` (已经内置 V0.12.0 路径:`./libs/xmltodict`)
- `pyperclip` (已经内置 V1.8.2 路径: `./libs/pyperclip`) - `pyperclip` (已经内置 V1.8.2 路径: `./libs/pyperclip`)
- `pillow` - `pillow`

View File

@ -12,7 +12,7 @@
<a href="https://996.icu"><img src="https://img.shields.io/badge/link-996.icu-red.svg" alt="996.icu" /></a> <a href="https://996.icu"><img src="https://img.shields.io/badge/link-996.icu-red.svg" alt="996.icu" /></a>
[![Generic badge](https://img.shields.io/badge/SemVer-2.0.0-blue.svg)](https://Semver.org/) [![Generic badge](https://img.shields.io/badge/SemVer-2.0.0-blue.svg)](https://Semver.org/)
[![Generic badge](https://img.shields.io/badge/Write_with_Python-3.8.10-blue.svg)](https://Python.org) [![Generic badge](https://img.shields.io/badge/Write_with_Python-3.8.10-blue.svg)](https://Python.org)
[![Generic badge](https://img.shields.io/badge/Write_with_Pyglet-2.0.2.1-blue.svg)](https://pyglet.org) [![Generic badge](https://img.shields.io/badge/Write_with_Pyglet-2.0.4-blue.svg)](https://pyglet.org)
[![Generic badge](https://img.shields.io/badge/Python-_3.8_|_3.9_|_3.10_|_3.11_-blue.svg)](https://Python.org) [![Generic badge](https://img.shields.io/badge/Python-_3.8_|_3.9_|_3.10_|_3.11_-blue.svg)](https://Python.org)
## Version ## Version
@ -55,7 +55,7 @@
- `rtoml` - `rtoml`
- `tomlkit` - `tomlkit`
- `pyglet` (pre-installed V2.0.2.1 path:`./libs/pyglet`) - `pyglet` (pre-installed V2.0.4 path:`./libs/pyglet`)
- `xmltodict` (pre-installed V0.12.0 path:`./libs/xmltodict`) - `xmltodict` (pre-installed V0.12.0 path:`./libs/xmltodict`)
- `pyperclip` (pre-installed V1.8.2 path: `./libs/pyperclip`) - `pyperclip` (pre-installed V1.8.2 path: `./libs/pyperclip`)
- `pillow` - `pillow`

View File

@ -68,6 +68,17 @@ pub mod sr1 {
#[allow(dead_code)] #[allow(dead_code)]
pub mod dr { pub mod dr {
pub enum ConnectType {
Stick,
FixedPoint {dx: f64, angle: f64},
RotatePoint {dx: f64, angle: f64}
}
pub struct Connect {
pub c_type: ConnectType,
}
pub enum PartType { pub enum PartType {
Pod, Pod,
Separator, Separator,
@ -88,12 +99,22 @@ pub mod dr {
pub struct DRPartData { pub struct DRPartData {
pub x: f64, pub x: f64,
pub y: f64, pub y: f64,
pub dx: f64,
pub dy: f64,
pub id: i64, pub id: i64,
pub p_type: PartType, pub p_type: PartType,
pub active: bool, pub active: bool,
pub angle: f64, // 角度制 pub angle: f64, // 角度制
pub angle_v: f64, pub angle_v: f64,
pub editor_angle: usize, pub flip_x: bool,
pub flip_y: bool,
pub connections: Option<Vec<usize>>
}
impl DRPartData {
pub fn get_textures(&self) -> String {
"aaa".to_string()
}
} }
} }