mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-04 02:54:08 +02:00
upgrade bool_from_int accuracy
This commit is contained in:
parent
b2983d9ac1
commit
0d93ee7733
1 changed files with 28 additions and 14 deletions
|
|
@ -871,9 +871,11 @@ pub struct EnvShake<'a> {
|
||||||
pub struct EnvShooter<'a> {
|
pub struct EnvShooter<'a> {
|
||||||
pub angles: Angles,
|
pub angles: Angles,
|
||||||
pub delay: f32,
|
pub delay: f32,
|
||||||
pub disablereceiveshadows: &'a str,
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
|
pub disablereceiveshadows: bool,
|
||||||
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub disableshadows: Option<&'a str>,
|
pub disableshadows: bool,
|
||||||
pub gibangles: Angles,
|
pub gibangles: Angles,
|
||||||
#[serde(deserialize_with = "bool_from_int")]
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
|
|
@ -1051,10 +1053,12 @@ pub struct EnvSprite<'a> {
|
||||||
}
|
}
|
||||||
#[derive(Debug, Clone, Deserialize)]
|
#[derive(Debug, Clone, Deserialize)]
|
||||||
pub struct EnvSpritetrail<'a> {
|
pub struct EnvSpritetrail<'a> {
|
||||||
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub disablereceiveshadows: Option<&'a str>,
|
pub disablereceiveshadows: bool,
|
||||||
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub disableshadows: Option<&'a str>,
|
pub disableshadows: bool,
|
||||||
pub endwidth: f32,
|
pub endwidth: f32,
|
||||||
pub lifetime: f32,
|
pub lifetime: f32,
|
||||||
#[serde(deserialize_with = "bool_from_int")]
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
|
|
@ -1372,10 +1376,12 @@ pub struct FuncBreakableSurf<'a> {
|
||||||
pub struct FuncBrush<'a> {
|
pub struct FuncBrush<'a> {
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub _minlight: Option<f32>,
|
pub _minlight: Option<f32>,
|
||||||
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub disablereceiveshadows: Option<&'a str>,
|
pub disablereceiveshadows: bool,
|
||||||
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub disableshadows: Option<&'a str>,
|
pub disableshadows: bool,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub inputfilter: Option<u8>,
|
pub inputfilter: Option<u8>,
|
||||||
#[serde(deserialize_with = "bool_from_int")]
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
|
|
@ -1414,9 +1420,11 @@ pub struct FuncButton<'a> {
|
||||||
pub _minlight: Option<f32>,
|
pub _minlight: Option<f32>,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub angles: Option<Angles>,
|
pub angles: Option<Angles>,
|
||||||
pub disablereceiveshadows: &'a str,
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
|
pub disablereceiveshadows: bool,
|
||||||
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub disableshadows: Option<&'a str>,
|
pub disableshadows: bool,
|
||||||
#[serde(deserialize_with = "bool_from_int")]
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub health: bool,
|
pub health: bool,
|
||||||
|
|
@ -1498,9 +1506,11 @@ pub struct FuncConveyor<'a> {
|
||||||
pub struct FuncDoor<'a> {
|
pub struct FuncDoor<'a> {
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub _minlight: Option<f32>,
|
pub _minlight: Option<f32>,
|
||||||
pub disablereceiveshadows: &'a str,
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
|
pub disablereceiveshadows: bool,
|
||||||
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub disableshadows: Option<&'a str>,
|
pub disableshadows: bool,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub dmg: Option<u32>,
|
pub dmg: Option<u32>,
|
||||||
#[serde(deserialize_with = "bool_from_int")]
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
|
|
@ -1969,9 +1979,11 @@ pub struct FuncRotating<'a> {
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub _minlight: Option<f32>,
|
pub _minlight: Option<f32>,
|
||||||
pub angles: Angles,
|
pub angles: Angles,
|
||||||
pub disablereceiveshadows: &'a str,
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
|
pub disablereceiveshadows: bool,
|
||||||
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub disableshadows: Option<&'a str>,
|
pub disableshadows: bool,
|
||||||
pub dmg: f32,
|
pub dmg: f32,
|
||||||
pub fanfriction: f32,
|
pub fanfriction: f32,
|
||||||
pub maxspeed: f32,
|
pub maxspeed: f32,
|
||||||
|
|
@ -2121,8 +2133,10 @@ pub struct FuncWall<'a> {
|
||||||
pub struct FuncWallToggle<'a> {
|
pub struct FuncWallToggle<'a> {
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub _minlight: Option<f32>,
|
pub _minlight: Option<f32>,
|
||||||
pub disablereceiveshadows: &'a str,
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
pub disableshadows: &'a str,
|
pub disablereceiveshadows: bool,
|
||||||
|
#[serde(deserialize_with = "bool_from_int")]
|
||||||
|
pub disableshadows: bool,
|
||||||
pub model: &'a str,
|
pub model: &'a str,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub origin: Option<Vector>,
|
pub origin: Option<Vector>,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue