更新~
This commit is contained in:
parent
a48a5ddec4
commit
32ed22254c
@ -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>
|
||||
[![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/编写于_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)
|
||||
|
||||
## 版本
|
||||
@ -55,7 +55,7 @@
|
||||
|
||||
- `rtoml`
|
||||
- `tomlkit`
|
||||
- `pyglet` (已经内置 V2.0.2.1 路径:`./libs/pyglet`)
|
||||
- `pyglet` (已经内置 V2.0.4 路径:`./libs/pyglet`)
|
||||
- `xmltodict` (已经内置 V0.12.0 路径:`./libs/xmltodict`)
|
||||
- `pyperclip` (已经内置 V1.8.2 路径: `./libs/pyperclip`)
|
||||
- `pillow`
|
||||
|
@ -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>
|
||||
[![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_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)
|
||||
|
||||
## Version
|
||||
@ -55,7 +55,7 @@
|
||||
|
||||
- `rtoml`
|
||||
- `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`)
|
||||
- `pyperclip` (pre-installed V1.8.2 path: `./libs/pyperclip`)
|
||||
- `pillow`
|
||||
|
@ -68,6 +68,17 @@ pub mod sr1 {
|
||||
|
||||
#[allow(dead_code)]
|
||||
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 {
|
||||
Pod,
|
||||
Separator,
|
||||
@ -88,12 +99,22 @@ pub mod dr {
|
||||
pub struct DRPartData {
|
||||
pub x: f64,
|
||||
pub y: f64,
|
||||
pub dx: f64,
|
||||
pub dy: f64,
|
||||
pub id: i64,
|
||||
pub p_type: PartType,
|
||||
pub active: bool,
|
||||
pub angle: 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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user