Struct bwapi_wrapper::BWAPI_GameData
source · #[repr(C)]pub struct BWAPI_GameData {Show 84 fields
pub client_version: c_int,
pub revision: c_int,
pub isDebug: bool,
pub instanceID: c_int,
pub botAPM_noselects: c_int,
pub botAPM_selects: c_int,
pub forceCount: c_int,
pub forces: [BWAPI_ForceData; 5],
pub playerCount: c_int,
pub players: [BWAPI_PlayerData; 12],
pub initialUnitCount: c_int,
pub units: [BWAPI_UnitData; 10000],
pub unitArray: [c_int; 1700],
pub bullets: [BWAPI_BulletData; 100],
pub nukeDotCount: c_int,
pub nukeDots: [BWAPIC_Position; 200],
pub gameType: c_int,
pub latency: c_int,
pub latencyFrames: c_int,
pub latencyTime: c_int,
pub remainingLatencyFrames: c_int,
pub remainingLatencyTime: c_int,
pub hasLatCom: bool,
pub hasGUI: bool,
pub replayFrameCount: c_int,
pub randomSeed: c_uint,
pub frameCount: c_int,
pub elapsedTime: c_int,
pub countdownTimer: c_int,
pub fps: c_int,
pub averageFPS: f64,
pub mouseX: c_int,
pub mouseY: c_int,
pub mouseState: [bool; 3],
pub keyState: [bool; 255],
pub screenX: c_int,
pub screenY: c_int,
pub flags: [bool; 2],
pub mapWidth: c_int,
pub mapHeight: c_int,
pub mapFileName: [c_char; 261],
pub mapPathName: [c_char; 261],
pub mapName: [c_char; 33],
pub mapHash: [c_char; 41],
pub getGroundHeight: [[c_int; 256]; 256],
pub isWalkable: [[bool; 1024]; 1024],
pub isBuildable: [[bool; 256]; 256],
pub isVisible: [[bool; 256]; 256],
pub isExplored: [[bool; 256]; 256],
pub hasCreep: [[bool; 256]; 256],
pub isOccupied: [[bool; 256]; 256],
pub mapTileRegionId: [[c_ushort; 256]; 256],
pub mapSplitTilesMiniTileMask: [c_ushort; 5000],
pub mapSplitTilesRegion1: [c_ushort; 5000],
pub mapSplitTilesRegion2: [c_ushort; 5000],
pub regionCount: c_int,
pub regions: [BWAPI_RegionData; 5000],
pub startLocationCount: c_int,
pub startLocations: [BWAPIC_Position; 8],
pub isInGame: bool,
pub isMultiplayer: bool,
pub isBattleNet: bool,
pub isPaused: bool,
pub isReplay: bool,
pub selectedUnitCount: c_int,
pub selectedUnits: [c_int; 12],
pub self_: c_int,
pub enemy: c_int,
pub neutral: c_int,
pub eventCount: c_int,
pub events: [BWAPIC_Event; 10000],
pub eventStringCount: c_int,
pub eventStrings: [[c_char; 256]; 1000],
pub stringCount: c_int,
pub strings: [[c_char; 1024]; 20000],
pub shapeCount: c_int,
pub shapes: [BWAPIC_Shape; 20000],
pub commandCount: c_int,
pub commands: [BWAPIC_Command; 20000],
pub unitCommandCount: c_int,
pub unitCommands: [BWAPIC_UnitCommand; 20000],
pub unitSearchSize: c_int,
pub xUnitSearch: [BWAPI_unitFinder; 3400],
pub yUnitSearch: [BWAPI_unitFinder; 3400],
}
Fields§
§client_version: c_int
§revision: c_int
§isDebug: bool
§instanceID: c_int
§botAPM_noselects: c_int
§botAPM_selects: c_int
§forceCount: c_int
§forces: [BWAPI_ForceData; 5]
§playerCount: c_int
§players: [BWAPI_PlayerData; 12]
§initialUnitCount: c_int
§units: [BWAPI_UnitData; 10000]
§unitArray: [c_int; 1700]
§bullets: [BWAPI_BulletData; 100]
§nukeDotCount: c_int
§nukeDots: [BWAPIC_Position; 200]
§gameType: c_int
§latency: c_int
§latencyFrames: c_int
§latencyTime: c_int
§remainingLatencyFrames: c_int
§remainingLatencyTime: c_int
§hasLatCom: bool
§hasGUI: bool
§replayFrameCount: c_int
§randomSeed: c_uint
§frameCount: c_int
§elapsedTime: c_int
§countdownTimer: c_int
§fps: c_int
§averageFPS: f64
§mouseX: c_int
§mouseY: c_int
§mouseState: [bool; 3]
§keyState: [bool; 255]
§screenX: c_int
§screenY: c_int
§flags: [bool; 2]
§mapWidth: c_int
§mapHeight: c_int
§mapFileName: [c_char; 261]
§mapPathName: [c_char; 261]
§mapName: [c_char; 33]
§mapHash: [c_char; 41]
§getGroundHeight: [[c_int; 256]; 256]
§isWalkable: [[bool; 1024]; 1024]
§isBuildable: [[bool; 256]; 256]
§isVisible: [[bool; 256]; 256]
§isExplored: [[bool; 256]; 256]
§hasCreep: [[bool; 256]; 256]
§isOccupied: [[bool; 256]; 256]
§mapTileRegionId: [[c_ushort; 256]; 256]
§mapSplitTilesMiniTileMask: [c_ushort; 5000]
§mapSplitTilesRegion1: [c_ushort; 5000]
§mapSplitTilesRegion2: [c_ushort; 5000]
§regionCount: c_int
§regions: [BWAPI_RegionData; 5000]
§startLocationCount: c_int
§startLocations: [BWAPIC_Position; 8]
§isInGame: bool
§isMultiplayer: bool
§isBattleNet: bool
§isPaused: bool
§isReplay: bool
§selectedUnitCount: c_int
§selectedUnits: [c_int; 12]
§self_: c_int
§enemy: c_int
§neutral: c_int
§eventCount: c_int
§events: [BWAPIC_Event; 10000]
§eventStringCount: c_int
§eventStrings: [[c_char; 256]; 1000]
§stringCount: c_int
§strings: [[c_char; 1024]; 20000]
§shapeCount: c_int
§shapes: [BWAPIC_Shape; 20000]
§commandCount: c_int
§commands: [BWAPIC_Command; 20000]
§unitCommandCount: c_int
§unitCommands: [BWAPIC_UnitCommand; 20000]
§unitSearchSize: c_int
§xUnitSearch: [BWAPI_unitFinder; 3400]
§yUnitSearch: [BWAPI_unitFinder; 3400]
Trait Implementations§
source§impl Clone for BWAPI_GameData
impl Clone for BWAPI_GameData
source§fn clone(&self) -> BWAPI_GameData
fn clone(&self) -> BWAPI_GameData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BWAPI_GameData
impl Debug for BWAPI_GameData
source§impl PartialEq for BWAPI_GameData
impl PartialEq for BWAPI_GameData
source§fn eq(&self, other: &BWAPI_GameData) -> bool
fn eq(&self, other: &BWAPI_GameData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BWAPI_GameData
impl StructuralPartialEq for BWAPI_GameData
Auto Trait Implementations§
impl RefUnwindSafe for BWAPI_GameData
impl Send for BWAPI_GameData
impl Sync for BWAPI_GameData
impl Unpin for BWAPI_GameData
impl UnwindSafe for BWAPI_GameData
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