Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 32 additions & 2 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,11 @@ declare const Deposit: DepositConstructor;
* A flag. Flags can be used to mark particular spots in a room. Flags are visible to their owners only.
*/
interface Flag extends RoomObject {
/**
* The prototype is stored in the {@link Flag.prototype} global object.
*
* You can use it to extend game objects behaviour globally.
*/
readonly prototype: Flag;

/**
Expand Down Expand Up @@ -3200,7 +3205,9 @@ declare const Memory: Memory;
*/
interface Mineral<T extends MineralConstant = MineralConstant> extends RoomObject {
/**
* The prototype is stored in the Mineral.prototype global object. You can use it to extend game objects behaviour globally.
* The prototype is stored in the {@link Mineral.prototype} global object.
*
* You can use it to extend game objects behaviour globally.
*/
readonly prototype: Mineral;
/**
Expand Down Expand Up @@ -3232,6 +3239,11 @@ declare const Mineral: MineralConstructor;
* A nuke landing position. This object cannot be removed or modified. You can find incoming nukes in the room using the FIND_NUKES constant.
*/
interface Nuke extends RoomObject {
/**
* The prototype is stored in the {@link Nuke.prototype} global object.
*
* You can use it to extend game objects behaviour globally.
*/
readonly prototype: Nuke;

/**
Expand Down Expand Up @@ -3717,6 +3729,11 @@ declare const RawMemory: RawMemory;
*/

interface Resource<T extends ResourceConstant = ResourceConstant> extends RoomObject {
/**
* The prototype is stored in the {@link Resource.prototype} global object.
*
* You can use it to extend game objects behaviour globally.
*/
readonly prototype: Resource;

/**
Expand Down Expand Up @@ -4574,6 +4591,12 @@ declare const Room: RoomConstructor;
* </ul>
*/
interface Ruin extends RoomObject {
/**
* The prototype is stored in the {@link Ruin.prototype} global object.
*
* You can use it to extend game objects behaviour globally.
*/
readonly prototype: Ruin;
/**
* A unique object identificator.
* You can use {@link Game.getObjectById} method to retrieve an object instance by its id.
Expand Down Expand Up @@ -4605,7 +4628,9 @@ declare const Ruin: RuinConstructor;
*/
interface Source extends RoomObject {
/**
* The prototype is stored in the Source.prototype global object. You can use it to extend game objects behaviour globally:
* The prototype is stored in the {@link Source.prototype} global object.
*
* You can use it to extend game objects behaviour globally.
*/
readonly prototype: Source;
/**
Expand Down Expand Up @@ -4905,6 +4930,11 @@ type GenericStore = GenericStoreBase & { [P in ResourceConstant]: number };
* Parent object for structure classes
*/
interface Structure<T extends StructureConstant = StructureConstant> extends RoomObject {
/**
* The prototype is stored in the {@link Structure.prototype} global object.
*
* You can use it to extend game objects behaviour globally.
*/
readonly prototype: Structure;

/**
Expand Down
5 changes: 5 additions & 0 deletions src/flag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
* A flag. Flags can be used to mark particular spots in a room. Flags are visible to their owners only.
*/
interface Flag extends RoomObject {
/**
* The prototype is stored in the {@link Flag.prototype} global object.
*
* You can use it to extend game objects behaviour globally.
*/
readonly prototype: Flag;

/**
Expand Down
4 changes: 3 additions & 1 deletion src/mineral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
*/
interface Mineral<T extends MineralConstant = MineralConstant> extends RoomObject {
/**
* The prototype is stored in the Mineral.prototype global object. You can use it to extend game objects behaviour globally.
* The prototype is stored in the {@link Mineral.prototype} global object.
*
* You can use it to extend game objects behaviour globally.
*/
readonly prototype: Mineral;
/**
Expand Down
5 changes: 5 additions & 0 deletions src/nuke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
* A nuke landing position. This object cannot be removed or modified. You can find incoming nukes in the room using the FIND_NUKES constant.
*/
interface Nuke extends RoomObject {
/**
* The prototype is stored in the {@link Nuke.prototype} global object.
*
* You can use it to extend game objects behaviour globally.
*/
readonly prototype: Nuke;

/**
Expand Down
5 changes: 5 additions & 0 deletions src/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
*/

interface Resource<T extends ResourceConstant = ResourceConstant> extends RoomObject {
/**
* The prototype is stored in the {@link Resource.prototype} global object.
*
* You can use it to extend game objects behaviour globally.
*/
readonly prototype: Resource;

/**
Expand Down
6 changes: 6 additions & 0 deletions src/ruin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
* </ul>
*/
interface Ruin extends RoomObject {
/**
* The prototype is stored in the {@link Ruin.prototype} global object.
*
* You can use it to extend game objects behaviour globally.
*/
readonly prototype: Ruin;
/**
* A unique object identificator.
* You can use {@link Game.getObjectById} method to retrieve an object instance by its id.
Expand Down
4 changes: 3 additions & 1 deletion src/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
*/
interface Source extends RoomObject {
/**
* The prototype is stored in the Source.prototype global object. You can use it to extend game objects behaviour globally:
* The prototype is stored in the {@link Source.prototype} global object.
*
* You can use it to extend game objects behaviour globally.
*/
readonly prototype: Source;
/**
Expand Down
5 changes: 5 additions & 0 deletions src/structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
* Parent object for structure classes
*/
interface Structure<T extends StructureConstant = StructureConstant> extends RoomObject {
/**
* The prototype is stored in the {@link Structure.prototype} global object.
*
* You can use it to extend game objects behaviour globally.
*/
readonly prototype: Structure;

/**
Expand Down