public void onMyUnitDestroyed(Unit unit) { var myunit = new BW.Unit(unit); State.onMyUnitDestroyed(myunit); }
public async Task BuildGas() { with_gas = true; TilePosition tile_position = Location.getGeysers().First().getTilePosition(); var item = State.pushItem("Protoss Assimilator", tile_position); assimilator = await item.buildingTask.Task; if (assimilator == null) with_gas = false; }
public void onMyUnitMorph(Unit unit) { var myunit = new BW.Unit(unit); // State.onMyUnitCreated(myunit); AIState.onMyUnitMorph(myunit); }