MCPcopy Index your code
hub / github.com/battlecode/battlecode-2018 / load

Method load

battlecode-engine/src/unit.rs:965–967  ·  view source on GitHub ↗

Updates the structure as if it has loaded a unit inside its garrison. Adds the unit ID to the garrison.

(&mut self, id: UnitID)

Source from the content-addressed store, hash-verified

963 /// Updates the structure as if it has loaded a unit inside its garrison.
964 /// Adds the unit ID to the garrison.
965 pub(crate) fn load(&mut self, id: UnitID) {
966 self.garrison.push(id);
967 }
968
969 /// Returns OK if the structure can unload a unit. The structure must be on
970 /// a planet and it must have at least one unit to unload. Does not check

Callers 2

test_factoryFunction · 0.45
test_rocketsFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_factoryFunction · 0.36
test_rocketsFunction · 0.36