Trait screeps::constants::FindConstant
[−]
[src]
pub unsafe trait FindConstant {
type Item: TryFrom<Value, Error = <Reference as TryFrom<Value>>::Error>;
fn find_code(&self) -> i32;
}
Associated Types
Required Methods
Implementors
impl FindConstant for Exit type Item = RoomPosition;impl FindConstant for CREEPS type Item = Creep;impl FindConstant for MY_CREEPS type Item = Creep;impl FindConstant for HOSTILE_CREEPS type Item = Creep;impl FindConstant for SOURCES_ACTIVE type Item = Source;impl FindConstant for SOURCES type Item = Source;impl FindConstant for DROPPED_RESOUCES type Item = Resource;impl FindConstant for STRUCTURES type Item = Structure;impl FindConstant for MY_STRUCTURES type Item = OwnedStructure;impl FindConstant for HOSTILE_STRUCTURES type Item = OwnedStructure;impl FindConstant for FLAGS type Item = Flag;impl FindConstant for CONSTRUCTION_SITES type Item = ConstructionSite;impl FindConstant for MY_SPAWNS type Item = StructureSpawn;impl FindConstant for HOSTILE_SPAWNS type Item = StructureSpawn;impl FindConstant for MY_CONSTRUCTION_SITES type Item = ConstructionSite;impl FindConstant for HOSTILE_CONSTRUCTION_SITES type Item = ConstructionSite;impl FindConstant for MINERALS type Item = Mineral;impl FindConstant for NUKES type Item = Nuke;impl FindConstant for FindObject type Item = RoomObject;