pub struct AreMiniGameEnemy {
pub vehicle: AreMiniGameVehicle,
pub trigger: u8,
}Expand description
Typed view over one enemy entry in MiniGame.Enemies.
Fields§
§vehicle: AreMiniGameVehicleThe vehicle fields shared with the player.
trigger: u8Enemy-only flag (Trigger), default 0.
The one field an enemy reads beyond the shared base. Unlike the
carry-over fields there, the default is applied unconditionally: the
read’s presence flag is never inspected, so an absent Trigger lands
as 0 exactly as if the file had written one.
Kept as the byte the file holds rather than narrowed to a bool, even
though vanilla only ever writes 0 or 1 and the module models its
other byte flags as bool. The spec records the type and the default
and says nothing about the value being interpreted as a flag, so
narrowing would turn a 2 into a 1 on write on the strength of a
guess about the name. The range vanilla happens to use is evidence
about vanilla’s content, not about the field’s domain.
The inconsistency with this module’s six bool fields runs the other
way from how it looks, and it is deliberate. DoBumping,
UseInertia, CameraRotate, RotatingModel, FlipAxisX and
FlipAxisY appear nowhere in the minigame or ARE specs: they predate
the audit that covered this subsystem, so each is a bool on the
strength of its name alone. Trigger is the one with a traced read.
Do not “fix” it to match them.
Left as is rather than widened, because a corpus round-trip reports no
changed values across ARE, which means no vanilla file carries a value
outside 0/1 in any of the six. The narrowing is lossless against
real content and latent rather than live, so this is a note and a
cheap future audit question, not a defect.
Trait Implementations§
Source§impl Clone for AreMiniGameEnemy
impl Clone for AreMiniGameEnemy
Source§fn clone(&self) -> AreMiniGameEnemy
fn clone(&self) -> AreMiniGameEnemy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AreMiniGameEnemy
impl Debug for AreMiniGameEnemy
Source§impl Default for AreMiniGameEnemy
impl Default for AreMiniGameEnemy
Source§fn default() -> AreMiniGameEnemy
fn default() -> AreMiniGameEnemy
Source§impl PartialEq for AreMiniGameEnemy
impl PartialEq for AreMiniGameEnemy
Source§fn eq(&self, other: &AreMiniGameEnemy) -> bool
fn eq(&self, other: &AreMiniGameEnemy) -> bool
self and other values to be equal, and is used by ==.