@@ -370,10 +370,8 @@ declare const GCL_POW: number;
370
370
declare const GCL_MULTIPLY : number ;
371
371
declare const GCL_NOVICE : number ;
372
372
373
- declare const MODE_SIMULATION : string ;
374
- declare const MODE_SURVIVAL : string ;
375
- declare const MODE_WORLD : string ;
376
- declare const MODE_ARENA : string ;
373
+ declare const MODE_SIMULATION : null ;
374
+ declare const MODE_WORLD : null ;
377
375
378
376
declare const TERRAIN_MASK_WALL : TERRAIN_MASK_WALL ;
379
377
declare const TERRAIN_MASK_SWAMP : TERRAIN_MASK_SWAMP ;
@@ -1770,11 +1768,6 @@ type StoreDefinition = Store<ResourceConstant, false>;
1770
1768
/** A general purpose Store, which has an unlimited capacity */
1771
1769
type StoreDefinitionUnlimited = Store < ResourceConstant , true > ;
1772
1770
1773
- // type SD<K extends ResourceConstant> = {
1774
- // [P in K]: number;
1775
- // energy: number;
1776
- // }
1777
-
1778
1771
/**
1779
1772
* @example
1780
1773
* {
@@ -1787,21 +1780,20 @@ type StoreDefinitionUnlimited = Store<ResourceConstant, true>;
1787
1780
type ExitsInformation = Partial < Record < ExitKey , string > > ;
1788
1781
1789
1782
interface AllLookAtTypes {
1790
- constructionSite : ConstructionSite ;
1791
- creep : Creep ;
1792
- energy : Resource < RESOURCE_ENERGY > ;
1793
- exit : any ; // TODO what type is this?
1794
- flag : Flag ;
1795
- mineral : Mineral ;
1796
- deposit : Deposit ;
1797
- nuke : Nuke ;
1798
- resource : Resource ;
1799
- source : Source ;
1800
- structure : AnyStructure ;
1801
- terrain : Terrain ;
1802
- tombstone : Tombstone ;
1803
- powerCreep : PowerCreep ;
1804
- ruin : Ruin ;
1783
+ [ LOOK_CONSTRUCTION_SITES ] : ConstructionSite ;
1784
+ [ LOOK_CREEPS ] : Creep ;
1785
+ [ LOOK_ENERGY ] : Resource < RESOURCE_ENERGY > ;
1786
+ [ LOOK_FLAGS ] : Flag ;
1787
+ [ LOOK_MINERALS ] : Mineral ;
1788
+ [ LOOK_DEPOSITS ] : Deposit ;
1789
+ [ LOOK_NUKES ] : Nuke ;
1790
+ [ LOOK_RESOURCES ] : Resource ;
1791
+ [ LOOK_SOURCES ] : Source ;
1792
+ [ LOOK_STRUCTURES ] : AnyStructure ;
1793
+ [ LOOK_TERRAIN ] : Terrain ;
1794
+ [ LOOK_TOMBSTONES ] : Tombstone ;
1795
+ [ LOOK_POWER_CREEPS ] : PowerCreep ;
1796
+ [ LOOK_RUINS ] : Ruin ;
1805
1797
}
1806
1798
1807
1799
type LookAtTypes = Partial < AllLookAtTypes > ;
@@ -1845,34 +1837,34 @@ interface FindTypes {
1845
1837
| Tombstone
1846
1838
| Deposit
1847
1839
| Ruin ;
1848
- 1 : RoomPosition ; // FIND_EXIT_TOP
1849
- 3 : RoomPosition ; // FIND_EXIT_RIGHT
1850
- 5 : RoomPosition ; // FIND_EXIT_BOTTOM
1851
- 7 : RoomPosition ; // FIND_EXIT_LEFT
1852
- 10 : RoomPosition ; // FIND_EXIT
1853
- 101 : Creep ; // FIND_CREEPS
1854
- 102 : Creep ; // FIND_MY_CREEPS
1855
- 103 : Creep ; // FIND_HOSTILE_CREEPS
1856
- 104 : Source ; // FIND_SOURCES_ACTIVE
1857
- 105 : Source ; // FIND_SOURCES
1858
- 106 : Resource ; // FIND_DROPPED_RESOURCES
1859
- 107 : AnyStructure ; // FIND_STRUCTURES
1860
- 108 : AnyOwnedStructure ; // FIND_MY_STRUCTURES
1861
- 109 : AnyOwnedStructure ; // FIND_HOSTILE_STRUCTURES
1862
- 110 : Flag ; // FIND_FLAGS
1863
- 111 : ConstructionSite ; // FIND_CONSTRUCTION_SITES
1864
- 112 : StructureSpawn ; // FIND_MY_SPAWNS
1865
- 113 : StructureSpawn ; // FIND_HOSTILE_SPAWNS
1866
- 114 : ConstructionSite ; // FIND_MY_CONSTRUCTION_SITES
1867
- 115 : ConstructionSite ; // FIND_HOSTILE_CONSTRUCTION_SITES
1868
- 116 : Mineral ; // FIND_MINERALS
1869
- 117 : Nuke ; // FIND_NUKES
1870
- 118 : Tombstone ; // FIND_TOMBSTONES
1871
- 119 : PowerCreep ; // FIND_POWER_CREEPS
1872
- 120 : PowerCreep ; // FIND_MY_POWER_CREEPS
1873
- 121 : PowerCreep ; // FIND_HOSTILE_POWER_CREEPS
1874
- 122 : Deposit ; // FIND_DEPOSITS
1875
- 123 : Ruin ; // FIND_RUINS
1840
+ [ FIND_EXIT_TOP ] : RoomPosition ;
1841
+ [ FIND_EXIT_RIGHT ] : RoomPosition ;
1842
+ [ FIND_EXIT_BOTTOM ] : RoomPosition ;
1843
+ [ FIND_EXIT_LEFT ] : RoomPosition ;
1844
+ [ FIND_EXIT ] : RoomPosition ;
1845
+ [ FIND_CREEPS ] : Creep ;
1846
+ [ FIND_MY_CREEPS ] : Creep ;
1847
+ [ FIND_HOSTILE_CREEPS ] : Creep ;
1848
+ [ FIND_SOURCES_ACTIVE ] : Source ;
1849
+ [ FIND_SOURCES ] : Source ;
1850
+ [ FIND_DROPPED_RESOURCES ] : Resource ;
1851
+ [ FIND_STRUCTURES ] : AnyStructure ;
1852
+ [ FIND_MY_STRUCTURES ] : AnyOwnedStructure ;
1853
+ [ FIND_HOSTILE_STRUCTURES ] : AnyOwnedStructure ;
1854
+ [ FIND_FLAGS ] : Flag ;
1855
+ [ FIND_CONSTRUCTION_SITES ] : ConstructionSite ;
1856
+ [ FIND_MY_SPAWNS ] : StructureSpawn ;
1857
+ [ FIND_HOSTILE_SPAWNS ] : StructureSpawn ;
1858
+ [ FIND_MY_CONSTRUCTION_SITES ] : ConstructionSite ;
1859
+ [ FIND_HOSTILE_CONSTRUCTION_SITES ] : ConstructionSite ;
1860
+ [ FIND_MINERALS ] : Mineral ;
1861
+ [ FIND_NUKES ] : Nuke ;
1862
+ [ FIND_TOMBSTONES ] : Tombstone ;
1863
+ [ FIND_POWER_CREEPS ] : PowerCreep ;
1864
+ [ FIND_MY_POWER_CREEPS ] : PowerCreep ;
1865
+ [ FIND_HOSTILE_POWER_CREEPS ] : PowerCreep ;
1866
+ [ FIND_DEPOSITS ] : Deposit ;
1867
+ [ FIND_RUINS ] : Ruin ;
1876
1868
}
1877
1869
1878
1870
interface FindPathOpts {
@@ -1991,24 +1983,6 @@ interface PathStep {
1991
1983
direction : DirectionConstant ;
1992
1984
}
1993
1985
1994
- /**
1995
- * An object with survival game info
1996
- */
1997
- interface SurvivalGameInfo {
1998
- /**
1999
- * Current score.
2000
- */
2001
- score : number ;
2002
- /**
2003
- * Time to the next wave of invaders.
2004
- */
2005
- timeToWave : number ;
2006
- /**
2007
- * The number of the next wave.
2008
- */
2009
- wave : number ;
2010
- }
2011
-
2012
1986
interface _Constructor < T > {
2013
1987
readonly prototype : T ;
2014
1988
}
@@ -4329,10 +4303,6 @@ interface Room {
4329
4303
* A shorthand to `Memory.rooms[room.name]`. You can use it for quick access the room’s specific memory data object.
4330
4304
*/
4331
4305
memory : RoomMemory ;
4332
- /**
4333
- * One of the `MODE_*` constants.
4334
- */
4335
- mode : string ;
4336
4306
/**
4337
4307
* The name of the room.
4338
4308
*/
@@ -4764,20 +4734,6 @@ interface StructureSpawn extends OwnedStructure<STRUCTURE_SPAWN> {
4764
4734
* ```
4765
4735
*/
4766
4736
spawnCreep ( body : BodyPartConstant [ ] , name : string , opts ?: SpawnOptions ) : ScreepsReturnCode ;
4767
-
4768
- /**
4769
- * Destroy this spawn immediately.
4770
- */
4771
- destroy ( ) : ScreepsReturnCode ;
4772
- /**
4773
- * Check whether this structure can be used. If the room controller level is not enough, then this method will return false, and the structure will be highlighted with red in the game.
4774
- */
4775
- isActive ( ) : boolean ;
4776
- /**
4777
- * Toggle auto notification when the spawn is under attack. The notification will be sent to your account email. Turned on by default.
4778
- * @param enabled Whether to enable notification or disable.
4779
- */
4780
- notifyWhenAttacked ( enabled : boolean ) : ScreepsReturnCode ;
4781
4737
/**
4782
4738
* Increase the remaining time to live of the target creep.
4783
4739
*
0 commit comments