@screeps-arena-community/types 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/package.json +1 -1
- package/src/arena/season_1/construct_and_control/basic/prototypes/area-effect.d.ts +1 -1
- package/src/game/prototypes/creep.d.ts +1 -1
- package/src/game/prototypes/index.d.ts +14 -4
- package/src/game/prototypes/resource.d.ts +1 -1
- package/src/game/prototypes/store.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -36,5 +36,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
36
36
|
- Package exports for tree-shaking support
|
|
37
37
|
- Full documentation and usage examples
|
|
38
38
|
|
|
39
|
-
[1.0.1]: https://github.com/screeps-arena/types/compare/v1.0.0...v1.0.1
|
|
40
|
-
[1.0.0]: https://github.com/screeps-arena/types/releases/tag/v1.0.0
|
|
39
|
+
[1.0.1]: https://github.com/screeps-arena-community/types/compare/v1.0.0...v1.0.1
|
|
40
|
+
[1.0.0]: https://github.com/screeps-arena-community/types/releases/tag/v1.0.0
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ declare module 'arena/season_1/construct_and_control/basic/prototypes' {
|
|
|
2
2
|
import { GameObject } from 'game/prototypes'
|
|
3
3
|
import { EFFECT_SLOWDOWN } from 'arena/season_1/construct_and_control/basic/constants'
|
|
4
4
|
|
|
5
|
-
type AreaEffectType = typeof EFFECT_SLOWDOWN
|
|
5
|
+
export type AreaEffectType = typeof EFFECT_SLOWDOWN
|
|
6
6
|
|
|
7
7
|
/** An object that applies an effect of the specified type to all creeps at the same tile */
|
|
8
8
|
export class AreaEffect extends GameObject {
|
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
declare module 'game/prototypes' {
|
|
2
|
-
export { Creep } from 'game/prototypes/creep'
|
|
3
|
-
export {
|
|
2
|
+
export { Creep, BodyPartType } from 'game/prototypes/creep'
|
|
3
|
+
export {
|
|
4
|
+
GameObject,
|
|
5
|
+
Position,
|
|
6
|
+
EffectData,
|
|
7
|
+
Effect,
|
|
8
|
+
} from 'game/prototypes/game-object'
|
|
4
9
|
export { Structure } from 'game/prototypes/structure'
|
|
5
10
|
export { OwnedStructure } from 'game/prototypes/owned-structure'
|
|
6
11
|
export { StructureTower } from 'game/prototypes/tower'
|
|
7
|
-
export {
|
|
12
|
+
export {
|
|
13
|
+
StructureSpawn,
|
|
14
|
+
SpawnCreepResult,
|
|
15
|
+
Spawning,
|
|
16
|
+
} from 'game/prototypes/spawn'
|
|
8
17
|
export { StructureWall } from 'game/prototypes/wall'
|
|
9
18
|
export { StructureContainer } from 'game/prototypes/container'
|
|
10
19
|
export { Source } from 'game/prototypes/source'
|
|
11
|
-
export { Resource } from 'game/prototypes/resource'
|
|
20
|
+
export { Resource, ResourceType } from 'game/prototypes/resource'
|
|
12
21
|
export { StructureRampart } from 'game/prototypes/rampart'
|
|
13
22
|
export { ConstructionSite } from 'game/prototypes/construction-site'
|
|
14
23
|
export { StructureExtension } from 'game/prototypes/extension'
|
|
15
24
|
export { StructureRoad } from 'game/prototypes/road'
|
|
16
25
|
export { Flag } from 'game/prototypes/flag'
|
|
26
|
+
export { Store } from 'game/prototypes/store'
|
|
17
27
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare module 'game/prototypes/resource' {
|
|
2
2
|
import { GameObject } from 'game/prototypes/game-object'
|
|
3
3
|
|
|
4
|
-
type ResourceType = string // TODO: develop resource type
|
|
4
|
+
export type ResourceType = string // TODO: develop resource type
|
|
5
5
|
|
|
6
6
|
/** A dropped piece of resource. Dropped resource pile decays for ceil(amount/1000) units per tick */
|
|
7
7
|
export class Resource extends GameObject {
|