Screeps docs1/7/2023 To update your code, you just need to change any string types to match one of the above. MineralConstant ( this is a subset of ResourceConstant) Here is the list of the new types: BodyPartConstantīuildableStructureConstant ( this is a subset of StructureConstant) Then you can extend them at a later time.Įxample: interface CreepMemory Īny place in code that uses a constant (ex STRUCTURE_EXTENSION or FIND_MY_SPAWNS is now constrained to use literal types. If you like the idea of typed memory, but aren't ready to just jump fully in, you only need to make sure you define an interface for the above four types. ![]() A bot for the MMO RPG game Screeps, where you program your own AI. In package.json, add a new test-integration script and add the new integration testing to the main test script. Copied You will also need to add scripts to run integration tests. This repo has more activity and is considerably more up-to-date. and reliable CDN for screeps-bot-kasamibot. npm install -save-dev screeps-server-mockup. Yarn add from Screeps-Typescript-Declarations A link to the Lodash API can be accessed in the screeps slack by typing lodash in a message. The type definitions are published on DefinitelyTyped. Strong TypeScript declarations for the game Screeps.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |