1
0
Fork 0
mirror of https://codeberg.org/icewind/vbsp.git synced 2026-06-04 02:54:08 +02:00

add Negated to codegen

This commit is contained in:
Quaternions 2025-02-17 11:01:21 -08:00
commit ac66462227

View file

@ -1179,7 +1179,7 @@ pub struct EnvWind {
#[derive(Debug, Clone, Deserialize)] #[derive(Debug, Clone, Deserialize)]
pub struct FilterActivatorClass<'a> { pub struct FilterActivatorClass<'a> {
pub filterclass: &'a str, pub filterclass: &'a str,
pub negated: &'a str, pub negated: Negated,
pub origin: Vector, pub origin: Vector,
pub targetname: &'a str, pub targetname: &'a str,
} }
@ -1187,7 +1187,7 @@ pub struct FilterActivatorClass<'a> {
pub struct FilterActivatorName<'a> { pub struct FilterActivatorName<'a> {
#[serde(default)] #[serde(default)]
pub filtername: Option<&'a str>, pub filtername: Option<&'a str>,
pub negated: &'a str, pub negated: Negated,
#[serde(default)] #[serde(default)]
pub onfail: Option<&'a str>, pub onfail: Option<&'a str>,
#[serde(default)] #[serde(default)]
@ -1198,7 +1198,7 @@ pub struct FilterActivatorName<'a> {
#[derive(Debug, Clone, Deserialize)] #[derive(Debug, Clone, Deserialize)]
pub struct FilterDamageType<'a> { pub struct FilterDamageType<'a> {
pub damagetype: u8, pub damagetype: u8,
pub negated: &'a str, pub negated: Negated,
pub origin: Vector, pub origin: Vector,
#[serde(default)] #[serde(default)]
pub targetname: Option<&'a str>, pub targetname: Option<&'a str>,