#[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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.