pub struct Editor {
pub color: String,
pub visgroup_ids: Vec<i32>,
pub group_id: Option<i32>,
pub visgroup_shown: bool,
pub visgroup_auto_shown: bool,
pub comments: Option<String>,
pub logical_pos: Option<String>,
pub extra: Extras,
}Expand description
Represents the editor data of a VMF entity or solid.
Fields§
§color: StringThe color of the entity in the editor, in “R G B” format.
visgroup_ids: Vec<i32>The IDs of the visgroups this entity is in, if any.
group_id: Option<i32>The ID of the group this entity is in, if any.
visgroup_shown: boolWhether the entity is shown in the visgroup.
visgroup_auto_shown: boolWhether the entity should automatically be shown in the visgroup.
comments: Option<String>Comments associated with the entity, if any.
logical_pos: Option<String>The logical position of the entity in the editor, in “[x y]” format.
extra: ExtrasKeys and blocks this struct does not model.
Implementations§
Trait Implementations§
impl Eq for Editor
Source§impl FromBlock for Editor
impl FromBlock for Editor
Source§fn from_block(block: VmfBlock, ctx: &mut ParseCtx) -> Self
fn from_block(block: VmfBlock, ctx: &mut ParseCtx) -> Self
Parses
block, substituting defaults and logging warnings for missing or invalid values.impl StructuralPartialEq for Editor
Source§impl VmfSerializable for Editor
impl VmfSerializable for Editor
Auto Trait Implementations§
impl Freeze for Editor
impl RefUnwindSafe for Editor
impl Send for Editor
impl Sync for Editor
impl Unpin for Editor
impl UnsafeUnpin for Editor
impl UnwindSafe for Editor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.