├── .editorconfig ├── .gitattributes ├── .gitignore ├── .gitmodules ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── config.example.json ├── gulpfile.js ├── libs ├── gulp-dot-flatten.js └── gulp-screeps-upload.js ├── package.json ├── src ├── components │ ├── cli │ │ ├── first-room.ts │ │ ├── hello.ts │ │ ├── kill.ts │ │ ├── killChild.ts │ │ ├── migrate-init.ts │ │ ├── mining.ts │ │ ├── new-room.ts │ │ ├── outpost.ts │ │ ├── ps.ts │ │ ├── start-colony-process.ts │ │ ├── start-remote-mining.ts │ │ ├── start-reservation-outpost.ts │ │ ├── test.ts │ │ └── wrapper.ts │ ├── processes │ │ ├── constants.ts │ │ ├── construction.ts │ │ ├── creep.ts │ │ ├── hello-world.ts │ │ ├── init.ts │ │ ├── memory │ │ │ ├── creep.ts │ │ │ └── overmind.ts │ │ ├── mining │ │ │ ├── courier.ts │ │ │ ├── miner-creep.ts │ │ │ ├── miner-with-link-creep.ts │ │ │ └── mining.ts │ │ ├── overmind.ts │ │ ├── process-status.ts │ │ ├── process.ts │ │ ├── raid │ │ │ └── basic.ts │ │ ├── remote-room │ │ │ ├── outpost-starter.ts │ │ │ ├── outpost.ts │ │ │ ├── reservation-outpost.ts │ │ │ └── reserve-creep.ts │ │ └── room │ │ │ ├── building-planner.ts │ │ │ ├── claim.ts │ │ │ ├── colony.ts │ │ │ ├── crane.ts │ │ │ ├── defense.ts │ │ │ ├── librarian.ts │ │ │ ├── link-manager.ts │ │ │ ├── maintainer-creep.ts │ │ │ ├── maintainer.ts │ │ │ ├── road-planner.ts │ │ │ ├── spawn.ts │ │ │ ├── starter-claim-creep.ts │ │ │ ├── starter-courier.ts │ │ │ ├── starter-creep.ts │ │ │ ├── starter.ts │ │ │ └── upgrader.ts │ └── utils │ │ ├── colony.ts │ │ └── spawn.ts ├── config │ └── config.ts ├── main.ts ├── minimist.ts ├── prototypes │ ├── room-position.ts │ └── structure.ts ├── shared │ └── memoryManager.ts └── typings │ ├── memory.d.ts │ ├── process-sleep.d.ts │ ├── process.d.ts │ ├── room-position.d.ts │ ├── spawn.d.ts │ └── structure.d.ts ├── tsconfig.json ├── tslint.json ├── typings.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/.gitmodules -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/README.md -------------------------------------------------------------------------------- /config.example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/config.example.json -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/gulpfile.js -------------------------------------------------------------------------------- /libs/gulp-dot-flatten.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/libs/gulp-dot-flatten.js -------------------------------------------------------------------------------- /libs/gulp-screeps-upload.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/libs/gulp-screeps-upload.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/package.json -------------------------------------------------------------------------------- /src/components/cli/first-room.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/cli/first-room.ts -------------------------------------------------------------------------------- /src/components/cli/hello.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/cli/hello.ts -------------------------------------------------------------------------------- /src/components/cli/kill.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/cli/kill.ts -------------------------------------------------------------------------------- /src/components/cli/killChild.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/cli/killChild.ts -------------------------------------------------------------------------------- /src/components/cli/migrate-init.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/cli/migrate-init.ts -------------------------------------------------------------------------------- /src/components/cli/mining.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/cli/mining.ts -------------------------------------------------------------------------------- /src/components/cli/new-room.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/cli/new-room.ts -------------------------------------------------------------------------------- /src/components/cli/outpost.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/cli/outpost.ts -------------------------------------------------------------------------------- /src/components/cli/ps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/cli/ps.ts -------------------------------------------------------------------------------- /src/components/cli/start-colony-process.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/cli/start-colony-process.ts -------------------------------------------------------------------------------- /src/components/cli/start-remote-mining.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/cli/start-remote-mining.ts -------------------------------------------------------------------------------- /src/components/cli/start-reservation-outpost.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/cli/start-reservation-outpost.ts -------------------------------------------------------------------------------- /src/components/cli/test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/cli/test.ts -------------------------------------------------------------------------------- /src/components/cli/wrapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/cli/wrapper.ts -------------------------------------------------------------------------------- /src/components/processes/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/constants.ts -------------------------------------------------------------------------------- /src/components/processes/construction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/construction.ts -------------------------------------------------------------------------------- /src/components/processes/creep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/creep.ts -------------------------------------------------------------------------------- /src/components/processes/hello-world.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/hello-world.ts -------------------------------------------------------------------------------- /src/components/processes/init.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/init.ts -------------------------------------------------------------------------------- /src/components/processes/memory/creep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/memory/creep.ts -------------------------------------------------------------------------------- /src/components/processes/memory/overmind.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/memory/overmind.ts -------------------------------------------------------------------------------- /src/components/processes/mining/courier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/mining/courier.ts -------------------------------------------------------------------------------- /src/components/processes/mining/miner-creep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/mining/miner-creep.ts -------------------------------------------------------------------------------- /src/components/processes/mining/miner-with-link-creep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/mining/miner-with-link-creep.ts -------------------------------------------------------------------------------- /src/components/processes/mining/mining.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/mining/mining.ts -------------------------------------------------------------------------------- /src/components/processes/overmind.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/overmind.ts -------------------------------------------------------------------------------- /src/components/processes/process-status.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/process-status.ts -------------------------------------------------------------------------------- /src/components/processes/process.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/process.ts -------------------------------------------------------------------------------- /src/components/processes/raid/basic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/raid/basic.ts -------------------------------------------------------------------------------- /src/components/processes/remote-room/outpost-starter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/remote-room/outpost-starter.ts -------------------------------------------------------------------------------- /src/components/processes/remote-room/outpost.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/remote-room/outpost.ts -------------------------------------------------------------------------------- /src/components/processes/remote-room/reservation-outpost.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/remote-room/reservation-outpost.ts -------------------------------------------------------------------------------- /src/components/processes/remote-room/reserve-creep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/remote-room/reserve-creep.ts -------------------------------------------------------------------------------- /src/components/processes/room/building-planner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/room/building-planner.ts -------------------------------------------------------------------------------- /src/components/processes/room/claim.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/room/claim.ts -------------------------------------------------------------------------------- /src/components/processes/room/colony.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/room/colony.ts -------------------------------------------------------------------------------- /src/components/processes/room/crane.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/room/crane.ts -------------------------------------------------------------------------------- /src/components/processes/room/defense.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/room/defense.ts -------------------------------------------------------------------------------- /src/components/processes/room/librarian.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/room/librarian.ts -------------------------------------------------------------------------------- /src/components/processes/room/link-manager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/room/link-manager.ts -------------------------------------------------------------------------------- /src/components/processes/room/maintainer-creep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/room/maintainer-creep.ts -------------------------------------------------------------------------------- /src/components/processes/room/maintainer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/room/maintainer.ts -------------------------------------------------------------------------------- /src/components/processes/room/road-planner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/room/road-planner.ts -------------------------------------------------------------------------------- /src/components/processes/room/spawn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/room/spawn.ts -------------------------------------------------------------------------------- /src/components/processes/room/starter-claim-creep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/room/starter-claim-creep.ts -------------------------------------------------------------------------------- /src/components/processes/room/starter-courier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/room/starter-courier.ts -------------------------------------------------------------------------------- /src/components/processes/room/starter-creep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/room/starter-creep.ts -------------------------------------------------------------------------------- /src/components/processes/room/starter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/room/starter.ts -------------------------------------------------------------------------------- /src/components/processes/room/upgrader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/processes/room/upgrader.ts -------------------------------------------------------------------------------- /src/components/utils/colony.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/utils/colony.ts -------------------------------------------------------------------------------- /src/components/utils/spawn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/components/utils/spawn.ts -------------------------------------------------------------------------------- /src/config/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/config/config.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/minimist.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/minimist.ts -------------------------------------------------------------------------------- /src/prototypes/room-position.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/prototypes/room-position.ts -------------------------------------------------------------------------------- /src/prototypes/structure.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/prototypes/structure.ts -------------------------------------------------------------------------------- /src/shared/memoryManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/shared/memoryManager.ts -------------------------------------------------------------------------------- /src/typings/memory.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/typings/memory.d.ts -------------------------------------------------------------------------------- /src/typings/process-sleep.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/typings/process-sleep.d.ts -------------------------------------------------------------------------------- /src/typings/process.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/typings/process.d.ts -------------------------------------------------------------------------------- /src/typings/room-position.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/src/typings/room-position.d.ts -------------------------------------------------------------------------------- /src/typings/spawn.d.ts: -------------------------------------------------------------------------------- 1 | type bodyMap = { [key: string]: number }; 2 | -------------------------------------------------------------------------------- /src/typings/structure.d.ts: -------------------------------------------------------------------------------- 1 | interface Structure { 2 | needEnergy(): boolean; 3 | } 4 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/tslint.json -------------------------------------------------------------------------------- /typings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/typings.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanHo/ScreepsOS/HEAD/yarn.lock --------------------------------------------------------------------------------