{"_id":"@brisberg/screepsmod-lockstep","_rev":"9-7fa59aa32ea8d05b8d320f5ecf9fc85d","name":"@brisberg/screepsmod-lockstep","dist-tags":{"latest":"1.2.0","beta":"1.0.1-beta"},"versions":{"0.1.0":{"name":"@brisberg/screepsmod-lockstep","version":"0.1.0","description":"A Screeps Server Mod which prevents the server from ticking unless a tick() is requested. Suitable for unit/integration testing of scripts where you need fine grained control over tick events.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","publish":"publish"},"repository":{"type":"git","url":"git+https://github.com/brisberg/screepsmod-lockstep.git"},"screeps_mod":true,"keywords":["screeps","mod"],"author":{"name":"Brandon Risberg"},"license":"MIT","bugs":{"url":"https://github.com/brisberg/screepsmod-lockstep/issues"},"homepage":"https://github.com/brisberg/screepsmod-lockstep#readme","devDependencies":{"publish":"^0.6.0"},"gitHead":"d589e1712dba655297cbe7122a20fe660fe81344","_id":"@brisberg/screepsmod-lockstep@0.1.0","_nodeVersion":"10.19.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-AFulH/UcroJDs73xjrEn4U6HRTGuJ2uvASvq601HMv2N9MGCV4mLSjIJ3eNyKZFSVUJ0nJvSutpO1VBOZr6tdA==","shasum":"e3fc13996ac490c5b15d1ef45f281388030950ef","tarball":"https://registry.npmjs.org/@brisberg/screepsmod-lockstep/-/screepsmod-lockstep-0.1.0.tgz","fileCount":4,"unpackedSize":2200,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6RLyCRA9TVsSAnZWagAAoWMP/2RBgre31TlYYkEIWjxH\ndteyAKYRf10/fUcdYpJCwTQltAuN9gjR0bXJ3sfCX+Q9pyJatlJQ9zOabArb\nQ5L0OGLricOo1yGe4WRXLMXV8LZabDHoSxQ43SiHgrIAG7R6We+eQCr/JDuY\nKinn7GhjWr8FWMD/j9A9MDnP0FQB3JwOGaaizJ8+AVHHW0dnu4NjNXwBraZC\nZpjyP9rj0gg5iI8PEtxPrLD8r/1H22C8syVWD/+c3hNZzwVSexOCDJubN8vr\nysr1k+kWJIhqo1JoE6MhgMR8lKRj8TrdJqMvHNQSFfdSEzOhmRiBVcsW7WXS\ncC9eatcctl/2Uc9AtZKuVtjUelpTZMcXAOIBkyYhwRDn+Fn76QKVlO03mVcC\neBkSS0RPZzhT2PTnA6uC6mwaIDl/4XYFQRjmYP5DC0bcPGgZ6Ivl/ZaGx9AF\nee6/SAjLBzrjvcpCkB1WdVID0IQiNBZVffXXkyHw7wa3/OmtUAh3rFZ44kDy\nYbYMO46tdNW80H+TYDb5eyILHQ437YCYmGRJJ1thaR/CJPnfCnhaLtF356zn\nWdi2oYzDX4zOfWJ2YoVfwuvpIjIaVRantvvCaO2soy4w60fGo2iu7LC6Wzet\nAxvzniD8caXUbZuzh3jkAVMWw7lfxiIxwBxCHpTc/XR7fAPxujo12Vcmxcm/\n3DnC\r\n=/WV0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDsG0G2najAIPrfmc/6b8abrpHSpV7gQwbX5uTiYcttQIgegu2RZyCwF5gS/9E/Eteo/Pd9isxt5PH+Sepyup745k="}]},"maintainers":[{"name":"brisberg","email":"brandon.risberg@gmail.com"}],"_npmUser":{"name":"brisberg","email":"brandon.risberg@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/screepsmod-lockstep_0.1.0_1592333041952_0.9442520116993935"},"_hasShrinkwrap":false},"0.1.1":{"name":"@brisberg/screepsmod-lockstep","version":"0.1.1","description":"A Screeps Server Mod which prevents the server from ticking unless a tick() is requested. Suitable for unit/integration testing of scripts where you need fine-grained control over tick events.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","publish":"publish"},"repository":{"type":"git","url":"git+https://github.com/brisberg/screepsmod-lockstep.git"},"screeps_mod":true,"keywords":["screeps","mod"],"author":{"name":"Brandon Risberg"},"license":"MIT","bugs":{"url":"https://github.com/brisberg/screepsmod-lockstep/issues"},"homepage":"https://github.com/brisberg/screepsmod-lockstep#readme","devDependencies":{},"gitHead":"a5b6797e7812cc7c127c6d4c751d737149423fdf","_id":"@brisberg/screepsmod-lockstep@0.1.1","_nodeVersion":"10.19.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-JupxTuUhX5Wh/E4LaGLqmvXU0Wv+xPykdjPzqtJl6LHPriy81da3RbabXjmNpEaHDcGHM+ZxmyUoS75X9t+Uyg==","shasum":"486d8ef3787ca7db6f7204845486a7c08f2ac4c7","tarball":"https://registry.npmjs.org/@brisberg/screepsmod-lockstep/-/screepsmod-lockstep-0.1.1.tgz","fileCount":6,"unpackedSize":2553,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6RjuCRA9TVsSAnZWagAA46kP/ji/yCy1GO8Qe1CgHm0v\nGLdQ7lkWKxcUCNAo3bvmBr0pVBNkLKltx/Y0Q1T9HgR1TqJVkd+BZID6fSdS\nlbCHMnnQgaoVJOrG6+Kh2rM6Ws/ilPY8Q5PNscILXk2rVAIWjx3DM5nGiPtN\nBLYFivBdg3Nsg9Sp1hGlrP19nrpOa+MXMmbsHH++tRvj7OpDhDYFLYar6Gwc\n5+YI/q1K4FXbqiNRXJzOunV1ZyWcq4Adhx15Q9erXXonSjilnteJNVjuVGuk\ng4+Iz4UO6YuQ8sFHXRtJ7130yIajXED9u2M74SXdHw+zAS37tllOvcSAmgSr\nOPBYP4IoVBsRFqkZVPEv2W4tGm+kpWfjC+NFTgu2BIc4KvsSwo7m3m3UD/w+\nIw1dcqqI+UWMmeegF2Kd8GzktsFGPb/J+dq+Fh+M15r6yF6apW70BkEOgeAx\nA0yHqlo/MfwKYTKPLsB4gQ7Xmxgabg+2TIwvI9H6eeNpngkKfqb9OhfKHbLy\nN1gA1QEMX1leorDtkENvCksu/ZvDEJT/ecn6D3i28FQ4Wf38+IxtihfeZWJu\n9a7nVmmFcKon/qLrMZGD1MkCMr4Exo1z9fS3dGOHQJV3xtdxcvMuMeXF0C7I\niqvtiORM4o/irsZbviakBiLj7p1Gd6lk1b3HMegTU71AR4N84sjUqlcXWOLr\n6OVy\r\n=AMxa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICVgdhFA8CiffX/8c9zgFcCFnnnAKnclepX9q7bX8WjFAiAXhbHwVefTNcy3jDvVPuRl0Iz5gEXJRSIj0YuiKNu36Q=="}]},"maintainers":[{"name":"brisberg","email":"brandon.risberg@gmail.com"}],"_npmUser":{"name":"brisberg","email":"brandon.risberg@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/screepsmod-lockstep_0.1.1_1592334573697_0.867107723871321"},"_hasShrinkwrap":false},"0.1.2":{"name":"@brisberg/screepsmod-lockstep","version":"0.1.2","description":"A Screeps Server Mod which prevents the server from ticking unless a tick() is requested. Suitable for unit/integration testing of scripts where you need fine-grained control over tick events.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/brisberg/screepsmod-lockstep.git"},"screeps_mod":true,"keywords":["screeps","mod"],"author":{"name":"Brandon Risberg"},"license":"MIT","bugs":{"url":"https://github.com/brisberg/screepsmod-lockstep/issues"},"homepage":"https://github.com/brisberg/screepsmod-lockstep#readme","devDependencies":{},"gitHead":"caa4deb1a1734ebe17b90345f9e5cf76ffd41142","_id":"@brisberg/screepsmod-lockstep@0.1.2","_nodeVersion":"10.19.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-AxlwyFNlEl6/5Gk5gASdE53v/kgx86fPHz89n1ZwR46YxQbAm9cVZLGvlw0yI/Bwuw970HA023BSei3EihQyrg==","shasum":"6f7fcd15130d46882d714e969a53d240c0a37194","tarball":"https://registry.npmjs.org/@brisberg/screepsmod-lockstep/-/screepsmod-lockstep-0.1.2.tgz","fileCount":6,"unpackedSize":2616,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6SObCRA9TVsSAnZWagAAkt8P/iCKJlHOA+67Av5XxgGO\n+8wazW4YPBPJ0MxC+l3699CLeN5YTGMG8JQeSxNRjKm0yKLQkvUUSRBVrCu4\nTlp7aThcJYRlJjnaXRkIDxlM+txcHbBK9COOm6fbNumQcKmEa8Be+bwvK3fF\n9xrleS2eQ3ErAH4zUsv026ur4LijCaorfY+SW+wQ++KQZr5g90s2IOH5g0Ol\n4ZVTNKnUOEXnYcYN9RIlxF0BoMxj/4dAYG1zjMS1ggYuCtqFFUF+B9tPH1dn\nYihwLuRlesw5ylCjSBPzUiH4TefaROeoVcrJSmG197131AtR2ZIuibGoc22c\nhOe5w0wVUVK80pNjZdnWQtVXN/LMKCZOcmeArW09TTReJaf2CHrfQjLhBWPQ\n4d9kWBnmnLebtLH4JNPXvmdbMnVeBHgJFCiyPwHQzRLeC/QJHvDjINyxeTjv\nRfkhP7DJsorwgnYM3wCPwR8eQrSO2GKvOWrysw4AH0yQGb0aYhc18zPc4KXA\nZWVhdLXQJNiOUI1AiRlazs5NC/oqKsniUs9oB4dBbIpUjagyaga6GsR8EQm4\nFa50yjQ3+EJNwfA86qS5cd6AHyr46rKxQQQI2U+QMlm8iMMs84VWPIpGru2O\ny7Vln6whVFg6Nr8gK+Dy0Tj/379qUnDSqBdJI/8y+A9JSgH5W7sZXte1tKDP\nS7E1\r\n=oV42\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD01FXbRHbDewcgk/8n7O45Q3WU3YYwcjeg6jKIyOfBiQIhALVS9TP5KhMjkKWgfW/Or7pIdmm144uoTcjTAvBb5Id/"}]},"maintainers":[{"name":"brisberg","email":"brandon.risberg@gmail.com"}],"_npmUser":{"name":"brisberg","email":"brandon.risberg@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/screepsmod-lockstep_0.1.2_1592337307115_0.8181550012557472"},"_hasShrinkwrap":false},"1.0.0":{"name":"@brisberg/screepsmod-lockstep","version":"1.0.0","description":"A Screeps Server Mod which prevents the server from ticking unless a tick() is requested. Suitable for unit/integration testing of scripts where you need fine-grained control over tick events.","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/brisberg/screepsmod-lockstep.git"},"screeps_mod":true,"keywords":["screeps","mod"],"author":{"name":"Brandon Risberg"},"license":"MIT","bugs":{"url":"https://github.com/brisberg/screepsmod-lockstep/issues"},"homepage":"https://github.com/brisberg/screepsmod-lockstep#readme","devDependencies":{"dotenv":"^8.2.0","jest":"^26.0.1","screeps":"^4.1.6","@screeps/common":"github:brisberg/common#no-storage-restart"},"gitHead":"dec97722e60d1f2b473d8a42f8308f01e8d09b4b","_id":"@brisberg/screepsmod-lockstep@1.0.0","_nodeVersion":"10.19.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-uzEWObO8iLzdldHOAOedQkWEhOK96eM0uV8rQnxhMp1w1gSngUAK8SMTOteQmKIlA0go6+1LKmLeZdAwLIosUw==","shasum":"99d8fd0b770748ff11f0f43a4487519b3554ecfa","tarball":"https://registry.npmjs.org/@brisberg/screepsmod-lockstep/-/screepsmod-lockstep-1.0.0.tgz","fileCount":8,"unpackedSize":4053,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7DhGCRA9TVsSAnZWagAAkwwP/2IBzmoKgAr/ed5QcCLK\njOrPmGTvr4920CGq3jkV7Ahi/hiJh1OsWfDHLWkKKOxUFSK4sMgohEZ2gtgV\nsgZsIYV/1hq9Y8NZp/TbfFYJzghJ3E4G82TdQo4crnXBEoM6PaqXovJykWul\nOxb8l7HnnDOqeX6kbkha9jPw2N4XCQsC7UOVUomGfeyfwrRLeZMjy7C+/jWk\nZGygLPfR63oIk/PofiA6fgZwCgGH/kwzKn3nR0OTGZmvY1TnfeUglIgYElQ2\nJAClOXDKLmbIyTn90/FmZoWN22y5udxYtiYsSq+K6iQfcBOknylGKAF5+TkM\nIu/VR89JUYKBgC0FTLbygphAS/FujMdDrEdqgNNmZUniXO/xIiTVDh57ZDmM\nwYI85uwsDhsWNJkxTk6a7SDFm432vpjMGKQnbVK29G3l3n3ZsFR+DjLt/h6E\n3pJom600dZIX7Qz+9eOiZLdkqNBOxgvFlygwEbOeKsW0sPbQHUdHubLli9yq\ncl3bZ+nVwt7JZCHNwrMLdPekzib117jDQG3/zvSln9dB8IDco0ovTP38R7sd\nbf4Qs1mTr1f2rOgChKWaCs+/LHyshJOtQ7sf7BwAVRu6fsM6DWPoRXpuWlZn\nAANmzvoO2sa07fi64IE1OAlOFz6t5xEYonFdHinlRTLWnbkuk+7v4GG/OUQH\nfsW7\r\n=8mfr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBxqtHDWh3/9QSpiAZqRBn1Mi5C0Ml1mMhYGSa8az0cHAiEA7mFJbv20zCCUNhJXRu9we5vRZI2/sQt0iBFivT393lY="}]},"maintainers":[{"name":"brisberg","email":"brandon.risberg@gmail.com"}],"_npmUser":{"name":"brisberg","email":"brandon.risberg@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/screepsmod-lockstep_1.0.0_1592539206360_0.6986936132265178"},"_hasShrinkwrap":false},"1.0.0-beta":{"name":"@brisberg/screepsmod-lockstep","version":"1.0.0-beta","description":"A Screeps Server Mod which prevents the server from ticking unless a tick() is requested. Suitable for unit/integration testing of scripts where you need fine-grained control over tick events.","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/brisberg/screepsmod-lockstep.git"},"screeps_mod":true,"keywords":["screeps","mod"],"author":{"name":"Brandon Risberg"},"license":"MIT","bugs":{"url":"https://github.com/brisberg/screepsmod-lockstep/issues"},"homepage":"https://github.com/brisberg/screepsmod-lockstep#readme","devDependencies":{"dotenv":"^8.2.0","jest":"^26.0.1","screeps":"^4.1.6","@screeps/common":"github:brisberg/common#no-storage-restart"},"readmeFilename":"README.md","readme":"# Lockstep (Screeps Server Mod)\nLockstep will prevents the server from ticking unless a tick is specifically requested. Suitable for unit/integration testing of scripts where you need fine grained control over tick events.\n\n## Installation\n\nIn your Screeps Server directory:\n\n```npm install @brisberg/screepsmod-lockstep```\n\nor\n\n```yarn add @brisberg/screepsmod-lockstep```\n\nEnsure that Screeps automatically added it to your `mods.json` file.\n\n### Development\n\nClone this repo.\\\n```yarn install```\n\n### Testing\n\n```yarn test```\n\nUtilizes a local Screeps private server with the local mod version installed. Inspect server logs in `testEnv/logs`.\n\n**Note:** By default, this will fail to authenticate with Steam (causing the backend process to crash and restart). If you need it to test something on the backend for some reason, you can provide your steam web token securely as an environment variable.\n\nCreate a file named `screeps-testing-env` at the project root. Add your secure token like so (no quotes):\n\n```\n// DO NOT COMMIT THIS FILE\n// Configure your SteamWebApi key\n// STEAM_API_KEY = <Your Steam Token>\n```\n","licenseText":"MIT License\n\nCopyright (c) 2020 Brandon Risberg\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@brisberg/screepsmod-lockstep@1.0.0-beta","dist":{"shasum":"4de487b71bc039e1fa97bbe117fcb649f7b3e0c3","integrity":"sha512-0RCGwfYxEOMoPHvCcinKUIQ0x7QxilrR+jHp7AplKFQ8vdFH+eneNbmCdNlId+wlCEpilXO5KcXxX4H0XxlKeA==","tarball":"https://registry.npmjs.org/@brisberg/screepsmod-lockstep/-/screepsmod-lockstep-1.0.0-beta.tgz","fileCount":11,"unpackedSize":5413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7D72CRA9TVsSAnZWagAAJN0QAJ3RplC6VO3z0Oo/9G5p\n2YtGgHUMAcNzlaGyT8wCAJxA+4DO+vzN0PycQ7EReEFpmvhC2hMI0WCGx8tF\nUmCCmpsR3fgM11eL3fMB2SIrevMMKmlBiMjU5Mow2mjWrzBXicLrfXQeAZsn\nRGFY9biAkfFAdHiUj+S+o0KedLnnM4HBTcgJfDDMrVkCFcYe3LP6AQP69tFR\nUfB6xj1lv3UGymw5ZgUUW2sW1qU31CR+brsu3r01NIvW2st7gqXjsWSXTfyP\nuuCnhmwFxkJ3pcLEjndoyYz+6hTVlTegCIzN8P5/VdFUxhCikBvaepPHSE/D\n0utYyv9Yl4IBzkkAQ8YmjgXG9PE3rz0SkYYGQxciWdTetFu6ZzqWliBb3blo\nyHjpokZnwsbj7Wl1WNpDrUysSADwzno1jABcqrX5H+Q9zlyhWosIA2fO+ggV\nxFnLZ7q/w0N4Rmkwn6seGvHwTIEl6/9p8gT3nXcpD+uWGPMtQp0UaWk1nwGC\nBPS/Bm/OeMw0wMVbQZGXOMjc6Z5FBeCefCUsfeV3nfXlsnsB9c7QrUW4JnF0\nus9DfGaWDV+0gSP7rXSGld7eevqQraVvl64iwPov7J8ISMM/38y/4xHeS0DM\nfC4q/6sEclxAmhghfX49Itzb/Q4B0mrCuMLQI3MVdegN0Q5N4gwZvwg8iWbb\njEyM\r\n=Tzey\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNC5QU6ZXNPxWj53+Ez6s5yso+N++tlpk15cwok+Xn+gIgIPSzX/whqDKeLfmlsqUynpsBR4cu5ioORD+oAilwAIY="}]},"maintainers":[{"name":"brisberg","email":"brandon.risberg@gmail.com"}],"_npmUser":{"name":"brisberg","email":"brandon.risberg@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/screepsmod-lockstep_1.0.0-beta_1592540918081_0.655788366860391"},"_hasShrinkwrap":false},"1.0.1-beta":{"name":"@brisberg/screepsmod-lockstep","version":"1.0.1-beta","description":"A Screeps Server Mod which prevents the server from ticking unless a tick() is requested. Suitable for unit/integration testing of scripts where you need fine-grained control over tick events.","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/brisberg/screepsmod-lockstep.git"},"screeps_mod":true,"keywords":["screeps","mod"],"author":{"name":"Brandon Risberg"},"license":"MIT","bugs":{"url":"https://github.com/brisberg/screepsmod-lockstep/issues"},"homepage":"https://github.com/brisberg/screepsmod-lockstep#readme","devDependencies":{"@screeps/common":"github:brisberg/common#no-storage-restart","dotenv":"^8.2.0","jest":"^26.0.1","screeps":"^4.1.6"},"readmeFilename":"README.md","readme":"# Lockstep (Screeps Server Mod)\nLockstep will prevents the server from ticking unless a tick is specifically requested. Suitable for unit/integration testing of scripts where you need fine grained control over tick events.\n\n## Installation\n\nIn your Screeps Server directory:\n\n```npm install @brisberg/screepsmod-lockstep```\n\nor\n\n```yarn add @brisberg/screepsmod-lockstep```\n\nEnsure that Screeps automatically added it to your `mods.json` file.\n\n### Development\n\nClone this repo.\\\n```yarn install```\n\n### Testing\n\n```yarn test```\n\nUtilizes a local Screeps private server with the local mod version installed. Inspect server logs in `testEnv/logs`.\n\n**Note:** By default, this will fail to authenticate with Steam (causing the backend process to crash and restart). If you need it to test something on the backend for some reason, you can provide your steam web token securely as an environment variable.\n\nCreate a file named `screeps-testing-env` at the project root. Add your secure token like so (no quotes):\n\n```\n// DO NOT COMMIT THIS FILE\n// Configure your SteamWebApi key\n// STEAM_API_KEY = <Your Steam Token>\n```\n","licenseText":"MIT License\n\nCopyright (c) 2020 Brandon Risberg\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@brisberg/screepsmod-lockstep@1.0.1-beta","dist":{"shasum":"014fa12eb6091bf954a7a42d673f9678d8a783ee","integrity":"sha512-bAkif45rxO+Ph0UBNAztxftAZ0BfSTyEgSKy1SmmLx4HOGJiIkuR+LcJ6/B0AvCNqWW4ouoIYk51NOC9UZsLrQ==","tarball":"https://registry.npmjs.org/@brisberg/screepsmod-lockstep/-/screepsmod-lockstep-1.0.1-beta.tgz","fileCount":11,"unpackedSize":5477,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7EAjCRA9TVsSAnZWagAArpoQAIThHQqICaVJcK3/Cisp\n/IRwaZgcmqzpafsVTUdglgLgdfc/kKgZYJYsab6YnD0+hWDy0vxSJCg1MC/4\nY9O20LkOl6n2S1sDl7SJrZcHOQ2KenfMIaPueq2wqwTfUv2f8wYwFZx1LFsP\n2j05MkLEFlBuPivMAxUETQhaOmZKaRzl3OLeTXl529MwobbG1zcQULLEUQTi\nREe/EhbDKHPV8iK/bISs9fVPfr+q486k6tX/PN7OtTmrG50eEvyEJkJsDz7B\ncUhcjtVf29FbLPZb+ykSeFeRCIoBEVViA+5m3W0Bs+AJXeFzKMXzvt1haAgw\nbD+RDsam8kWuL5fJI2EJMiNAlAZuMaK33YsWIsSJTBwaCCTtmhnN1oSZXHgJ\nNmhhH0rlPHmzp8cSO7ipngucigY4R6/iOXTUGlBi/lI6oMwFNDd/gfdGEWoO\nc7h3EFN0K0NE6zHK3J6lREKcSa1J3cpFH+sxjE41IJIKwZdPPJKO3s5envxa\nOlg4sJduremJf7xcwtUuDdkcugCGuSTuXohq8lySWqZD+7KLqjPBcYva+Y/c\npF/JIYI+mBMhl7f4o82awtp0RZIK1nN8i+ZVFP2rvNRRj+LvBJmxG4B2irfl\nTxGTm2kLq5Nq3PdPwyFexwis6GHWQhdTRTvfiHo66MxuEszVubo1gk5WKSBF\nwcdL\r\n=uH3Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqSt97g0hRrbzDN1Xnop+aObOIBP5fOWH7StqKRj1ZtQIgIKdYmBhV0gG4sMPuWKFlABqKVrEeyjG+i7hBlvtEUk0="}]},"maintainers":[{"name":"brisberg","email":"brandon.risberg@gmail.com"}],"_npmUser":{"name":"brisberg","email":"brandon.risberg@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/screepsmod-lockstep_1.0.1-beta_1592541218754_0.8845987763152723"},"_hasShrinkwrap":false},"1.0.1":{"name":"@brisberg/screepsmod-lockstep","version":"1.0.1","description":"A Screeps Server Mod which prevents the server from ticking unless a tick() is requested. Suitable for unit/integration testing of scripts where you need fine-grained control over tick events.","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/brisberg/screepsmod-lockstep.git"},"screeps_mod":true,"keywords":["screeps","mod"],"author":{"name":"Brandon Risberg"},"license":"MIT","bugs":{"url":"https://github.com/brisberg/screepsmod-lockstep/issues"},"homepage":"https://github.com/brisberg/screepsmod-lockstep#readme","devDependencies":{"@screeps/common":"github:brisberg/common#no-storage-restart","dotenv":"^8.2.0","jest":"^26.0.1","screeps":"^4.1.6"},"licenseText":"MIT License\n\nCopyright (c) 2020 Brandon Risberg\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@brisberg/screepsmod-lockstep@1.0.1","dist":{"shasum":"ef599a9470424c38eafc9bf5353147283e28bbba","integrity":"sha512-uNBw9XGLm24ASPKv0CGRLxgvWF4s4zPiJjenr3ANTi9ZpHc+tFQI+qrqctlbqXGvqcFOYFIoc83CtRdfubDrrg==","tarball":"https://registry.npmjs.org/@brisberg/screepsmod-lockstep/-/screepsmod-lockstep-1.0.1.tgz","fileCount":11,"unpackedSize":5472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7ECVCRA9TVsSAnZWagAAMdUP/0Xr07pQ456MO0TDdDmX\n8mXmhXlj7oqoM4tA6hVblV0DeKeRbeJMnDwC1j5rEAOk2UF/46X+kRAn/wlW\nFN53vtCchNEykZcNK7qo/ogsAFCHC35v1YDP6CDjLPUAxraGypal1Lx0Z7/T\nyh3s2QV5MeSetHPSt38C/8Oqjhhxg8QcojON0QQ7FJOoGY0lsbd8VNvbIJb4\nmCY6D/x+SAUoSfMuIcddqp8Reff33m/8g7/wnbMpI+hKZ3omV8orvnujFsXS\nT7E/twWAznvwrzR3Fuxlu3bBii40kT4H48N4D1s/1m9t4ziEEvoW9k8iUvDu\nFbwujVqKJoEbiNg/PJYsAL1kh1EcHm+oOKiiMY9RNW0s4k+UBClM6WQBQgl9\nzAn9F9FwuWoNDxI63CFHdj9WnI7lSTMAX0mk2LzfNpqM/tU25GZcGdelPY2J\nvFPJoYr5v7joFFzthnYRGiEs+p1ntUKm+JurKRMqHJ+VH5KJRrnq1kE7py/U\ni/QigGLp5TY6XlHfLCjFxgsA4S5djjNWg7TP8MX1fcJGojdMr60frKq9vfTO\niRyTaQda6a8He8JUXvdOqczxN9/1EUi+qu3ED1DTVAJzesIGssYOofohXbqt\ngBOQPbwhGeumUsFHbwv1v67eaBpFxrYAeqXCOU/RVlH1q5zBBezveLEAJuaT\nCgLi\r\n=dhhw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDj37H3JjvFERW1JEYW3wt/GFNvDFn+roFpyZo71yUpGgIgF18VpcZt32jFa6jiqGL7UCzJKpDwfIhyeldndjaGjzw="}]},"maintainers":[{"name":"brisberg","email":"brandon.risberg@gmail.com"}],"_npmUser":{"name":"brisberg","email":"brandon.risberg@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/screepsmod-lockstep_1.0.1_1592541333458_0.35913815152711526"},"_hasShrinkwrap":false},"1.1.2":{"name":"@brisberg/screepsmod-lockstep","version":"1.1.2","description":"A Screeps Server Mod which prevents the server from ticking unless a tick() is requested. Suitable for unit/integration testing of scripts where you need fine-grained control over tick events.","main":"index.js","screeps_mod":true,"keywords":["screeps","mod"],"author":{"name":"Brandon Risberg"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/brisberg/screepsmod-lockstep.git"},"bugs":{"url":"https://github.com/brisberg/screepsmod-lockstep/issues"},"homepage":"https://github.com/brisberg/screepsmod-lockstep#readme","publishConfig":{"registry":"https://registry.npmjs.org/"},"scripts":{"test":"jest --runInBand"},"devDependencies":{"@brisberg/screeps-test-server":"^0.1.2","dotenv":"^8.2.0","jest":"^26.0.1","q":"^1.5.1","screeps":"^4.1.6"},"licenseText":"MIT License\n\nCopyright (c) 2020 Brandon Risberg\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@brisberg/screepsmod-lockstep@1.1.2","dist":{"shasum":"aa36cecadbaff3cb51e7b2be1a44f873c693d38c","integrity":"sha512-NcGcdVtE9o8eMbMPsZzTP+xfb2MZ3RDj0RZ2DiiVvRZnqwT1Aqd8GpdDE0SiCYn32CLUEZl616ifhjnpCbcD+g==","tarball":"https://registry.npmjs.org/@brisberg/screepsmod-lockstep/-/screepsmod-lockstep-1.1.2.tgz","fileCount":11,"unpackedSize":6296,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8r4SCRA9TVsSAnZWagAAOLQP/jqx/wJKl4Rsu20O4Mfq\nrJdkSupOF68U2AImUqOtIGpGkzmjfDEmQgjF7P/0I4+BqRAxjcS8MckXaVNt\n0FRzSP/DJsA6Qgc0ZgciPt0rhvul1+YIzjK4VwXC2PiiPmIDe2moPo3mzEDJ\ncKAOTIGSL3wxnYq7u2xzZeRXGp6kIE1+Xdf7l5mj5UJeckmHh91miL3fgIuW\ndZeSs3d/k2TDkWv/phsZd63fyD01JW0P+Eg4nQPdSgPT7DSBvjDmH4aAfuvu\nawnWWiZce2lUU0JVOCzk5WxjJkGMV5r8KubK4i+g8oWBhm1wqGIhnabaMs8L\ns2nC2CCk91z/3l8gz8KFXwpDPHc7GzQ/C823LwSVy1yqCThxoc1zRWqphl7Z\nbg3jM01afViQ0Vye8G1qlgqUqL1QZ5EFX+hvJ4Qx2Ihy8hm2jf9y/Rf76QEC\nm64neQxzQkKzJrZxGkd7lTNwCKsFPFR/EFN0c95SdtI8t5FmA8OnzMpuGtV2\nwRf8ktbYNUSAKILE3cADj0Gv1nZaSR6hYSJ1Zs1DAu0SmR0JstwH3skQx3+f\nKpA3ioBFwL+gffdlpN3tMAd/A52uznBRlgQwks6+dmK0Eznuz3ZbDTUhApLd\nmIUfKFFhhU3KAA0NRW4A04UCeKSP9HJDCcw8KfFyLk5trPYF5yWN+JcfVx69\nXy37\r\n=mFqF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUNmS2Vxl/OAzRFXKlO+aoMbqIvrqG66UtxVipdhTgvAiEA6y9mYeUj85MpaFboBiCX75yNarQKpaUmWsmix0aZLKs="}]},"maintainers":[{"name":"brisberg","email":"brandon.risberg@gmail.com"}],"_npmUser":{"name":"brisberg","email":"brandon.risberg@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/screepsmod-lockstep_1.1.2_1592966674278_0.2797207523197831"},"_hasShrinkwrap":false},"1.2.0":{"name":"@brisberg/screepsmod-lockstep","version":"1.2.0","description":"A Screeps Server Mod which prevents the server from ticking unless a tick() is requested. Suitable for unit/integration testing of scripts where you need fine-grained control over tick events.","main":"lib/index.js","types":"lib/index.d.ts","keywords":["typescript","screeps","mod"],"author":{"name":"brisberg","email":"brandon.risberg@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/brisberg/screepsmod-lockstep.git"},"bugs":{"url":"https://github.com/brisberg/screepsmod-lockstep/issues"},"homepage":"https://github.com/brisberg/screepsmod-lockstep#readme","publishConfig":{"registry":"https://registry.npmjs.org/"},"scripts":{"build":"tsc","run":"node lib/index.js","test":"yarn build && jest --runInBand","lint":"eslint \"src/**/*.ts\""},"devDependencies":{"@brisberg/screeps-test-server":"^0.2.0","@types/jest":"^26.0.0","@types/q":"^1.5.4","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","clang-format":"^1.4.0","dotenv":"^8.2.0","eslint":"^7.3.1","eslint-config-google":"^0.14.0","jest":"^26.1.0","q":"^1.5.1","screeps":"^4.1.6","ts-jest":"^26.1.1","typescript":"3.9.4"},"licenseText":"MIT License\n\nCopyright (c) 2020 Brandon Risberg\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@brisberg/screepsmod-lockstep@1.2.0","dist":{"shasum":"ccfce02adcf93f95f89f538c5d4dfde111434e8e","integrity":"sha512-jAptOIqcS3yCL3ZiTP8MWIFpGgPEwK9ADzWNA8roexcFwfKZIckIT+ObGuQv4lNrKaj7TNk8wxkaCEHf2G5nKw==","tarball":"https://registry.npmjs.org/@brisberg/screepsmod-lockstep/-/screepsmod-lockstep-1.2.0.tgz","fileCount":32,"unpackedSize":577536,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8uIgCRA9TVsSAnZWagAAGdUP/31qNEr++broXDBlELWF\n9u5JGJKcpKxsjCP4RpDA6FBRC4JRAglAxDx0cwLgX6jqC8KJNruULQW1zzFW\nZ0AzEtblUMiyx9P+SZAfGn126LhWPdVP7WwcODcG59xPZNgEaxd6JZjWn9cw\n9EMhxqac56qIL1vyNCEz6OEog5bgaXKpotKJw4asOBxQQn//1ZBvTrLapagZ\nHQ8b/5x+PTeBGzV3MjGJBxysdk4UPTvB9zhJl4m5lTfoprZauPNqsmScddbK\n+jb8GxdyeI5WLYa70qCxJ3O9WxOJ7Ml7rPO8iqyqvlcYn4oEEl1IEvt4J3s9\nfBirIrCSSoZhpJ0Pwg6maY2lVpSpt9eWU5zuRH3iEYc6QaUCH/8DD49M4IRt\nO7nrESgybUkYqbvXpNWcUEXnUxg5MN45i6ZpKbMlzHND2SZZIeHnzw7LEEFd\nup+cozd3xKfhlHCNnI1zsgOVlOE9/33k7R5ROe6MlGFExG7u7GRZXOjJ+xPt\n+yz00egHNOJphnjaW3XANb9I0jntxDcHXbZ1DlloScAkPWv5o/2i2DldBEIa\nD6o+jKDliqsxT2/FBmAYtw+rS/Vw5NJIhlT9oPTzKO2jngXutzXGAn6Ng9fu\nHs5tmNIRtejSRuMebtu3g+E1MoCZr7js7A3I4JRgltUilbvS32yMJN2HNRF1\nE+bt\r\n=SaI1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF+Z8dfv773AFdeq6BYzGUblufwAJzAEos01rpeKI+hgAiBK8Fp+D/XAfIRccYrtYy6UFsY3OP3EXaCeokm9cgmxpQ=="}]},"maintainers":[{"name":"brisberg","email":"brandon.risberg@gmail.com"}],"_npmUser":{"name":"brisberg","email":"brandon.risberg@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/screepsmod-lockstep_1.2.0_1592975903579_0.7704315659241001"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-16T18:44:01.913Z","0.1.0":"2020-06-16T18:44:02.192Z","modified":"2022-04-04T20:42:21.736Z","0.1.1":"2020-06-16T19:09:33.836Z","0.1.2":"2020-06-16T19:55:07.225Z","1.0.0":"2020-06-19T04:00:06.499Z","1.0.0-beta":"2020-06-19T04:28:38.243Z","1.0.1-beta":"2020-06-19T04:33:38.891Z","1.0.1":"2020-06-19T04:35:33.585Z","1.1.2":"2020-06-24T02:44:34.390Z","1.2.0":"2020-06-24T05:18:23.713Z"},"maintainers":[{"name":"brisberg","email":"brandon.risberg@gmail.com"}],"description":"A Screeps Server Mod which prevents the server from ticking unless a tick() is requested. Suitable for unit/integration testing of scripts where you need fine-grained control over tick events.","homepage":"https://github.com/brisberg/screepsmod-lockstep#readme","keywords":["typescript","screeps","mod"],"repository":{"type":"git","url":"https://github.com/brisberg/screepsmod-lockstep.git"},"author":{"name":"brisberg","email":"brandon.risberg@gmail.com"},"bugs":{"url":"https://github.com/brisberg/screepsmod-lockstep/issues"},"license":"MIT","readme":"# Lockstep (Screeps Server Mod)\nLockstep will prevents the server from ticking unless a tick is specifically requested. Suitable for unit/integration testing of scripts where you need fine grained control over tick events.\n\n## Installation\n\nIn your Screeps Server directory:\n\n```npm install @brisberg/screepsmod-lockstep```\n\nor\n\n```yarn add @brisberg/screepsmod-lockstep```\n\nEnsure that Screeps automatically added it to your `mods.json` file.\n\n### Usage\n\nFrom another server mod:\n```javascript\n// Respond to server locked event\npubsub.subscribe(pubsub.keys.LOCKSTEP_LOCKED, (gameTime) => {\n  console.log(`Server locked at gameTime: ${gameTime}`);\n})\n\npubsub.subscribe(pubsub.keys.TICK_STARTED, () => console.log('Tick!'));\n\n// Request 5 ticks over pubsub\npubsub.publish(pubsub.keys.LOCKSTEP_UNLOCK, 5);\n\n/// Output (logs/engine_main.log)\n// Server locked at gameTime: 1\n// Tick!\n// Tick!\n// Tick!\n// Tick!\n// Tick!\n// Server locked at gameTime: 6\n```\n\n---\n\n## Development\n\n### Actions\n\n`yarn build` - Builds the package, emitting .js and .d.ts files\\\n`yarn lint` - Runs lint over the project source\\\n`yarn test` - Runs all tests under the src/ directory\\\n`yarn publish` - Bumps package version and publishes the package to Github Packages\n\n### Testing\n\n```yarn test```\n\nUtilizes a local Screeps private server with the local mod version installed. Inspect server logs in `server/logs`.\n\n**Note:** By default, this will fail to authenticate with Steam (causing the backend process to crash and restart). If you need it to test something on the backend for some reason, you can provide your steam web token securely as an environment variable.\n\nCreate a file named `screeps-testing-env` at the project root. Add your secure token like so (no quotes):\n\n```\n// DO NOT COMMIT THIS FILE\n// Configure your SteamWebApi key\nSTEAM_API_KEY = <Your Steam Token>\n```\n\n## Toolchain\n\nUses [@brisberg/typescript-pkg](https://github.com/brisberg/typescript-pkg) as a template for Toolchain configuration.\n\nSee that repo for a list of tools, documentation, and upgrade steps.\n","readmeFilename":"README.md"}