-
Notifications
You must be signed in to change notification settings - Fork 105
/
Mineral.js
50 lines (46 loc) · 1.22 KB
/
Mineral.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
/**
* A mineral deposit.
* Can be harvested by creeps with a WORK body part using the extractor structure.
*
* @class
* @extends {RoomObject}
*
* @see {@link http://support.screeps.com/hc/en-us/articles/207218579-Mineral}
*/
Mineral = function() { };
Mineral.prototype =
{
/**
* The remaining amount of resources.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/207218579-Mineral#mineralAmount}
*
* @type {number}
*/
mineralAmount: 0,
/**
* The resource type, one of the RESOURCE_* constants.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/207218579-Mineral#mineralType}
*
* @type {string}
*/
mineralType: "",
/**
* A unique object identificator.
* You can use Game.getObjectById method to retrieve an object instance by its id.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/207218579-Mineral#id}
*
* @type {string}
*/
id: "",
/**
* The remaining time after which the deposit will be refilled.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/207218579-Mineral#ticksToRegeneration}
*
* @type {number}
*/
ticksToRegeneration: 0
};