-
Notifications
You must be signed in to change notification settings - Fork 106
/
Copy pathRuin.js
58 lines (52 loc) · 1.24 KB
/
Ruin.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
* A destroyed structure. This is a walkable object.
*
* @class
* @extends {RoomObject}
*
* @see {@link https://docs.screeps.com/api/#Ruin}
*/
Ruin = function () {
};
Ruin.prototype = {
/**
* The time when the structure has been destroyed.
*
* @see {@link https://docs.screeps.com/api/#Ruin.destroyTime}
*
* @return {number}
*/
destroyTime: 0,
/**
* A unique object identificator. You can use {@link Game.getObjectById()} method to retrieve an object instance by its id.
*
* @see {@link https://docs.screeps.com/api/#Ruin.id}
*
* @return {string}
*/
id: "",
/**
* A Store object that contains resources of this structure.
*
* @see {@link https://docs.screeps.com/api/#Ruin.store}
*
* @return {Store}
*/
store: {},
/**
* An object containing basic data of the destroyed structure.
*
* @see {@link https://docs.screeps.com/api/#Ruin.structure}
*
* @return {Structure|OwnedStructure}
*/
structure: {},
/**
* The amount of game ticks before this ruin decays.
*
* @see {@link https://docs.screeps.com/api/#Ruin.ticksToDecay}
*
* @return {number}
*/
ticksToDecay: 0
};