screeps-api
screeps-api copied to clipboard
Method signatures
Here is a list of method signatures that should be updated:
Creep.owner always has username in the returned object. Spawn.createCreep name and memory are optional. Spawn.canCreateCreep name is optional.
RoomPosition.findClosest can return a number of structured objects as well as unstructured objects. For instance, the output using FIND_HOSTILE_CREEPS can return a creep object which can be passed into other positioning methods.
*.transferEnergy amount is optional.