forked from Garethp/ScreepsAutocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSource.js
More file actions
42 lines (37 loc) · 733 Bytes
/
Copy pathSource.js
File metadata and controls
42 lines (37 loc) · 733 Bytes
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
/**
* An energy source object.
* Can be harvested by creeps with a WORK body part.
*
* @class
* @extends {RoomObject}
*/
class Source extends RoomObject {
}
Source.prototype =
{
/**
* The remaining amount of energy.
*
* @type {number}
*/
energy: 0,
/**
* The total amount of energy in the source.
*
* @type {number}
*/
energyCapacity: 0,
/**
* A unique object identificator.
* You can use Game.getObjectById method to retrieve an object instance by its id.
*
* @type {string}
*/
id: "",
/**
* The remaining time after which the source will be refilled.
*
* @type {number}
*/
ticksToRegeneration: 0
};