forked from Garethp/ScreepsAutocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRawMemory.js
35 lines (33 loc) · 812 Bytes
/
RawMemory.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
/**
* RawMemory object allows to implement your own memory stringifier instead of built-in serializer based on JSON.stringify.
*
* @class
*
* @see {@link http://support.screeps.com/hc/en-us/articles/205619121-RawMemory}
*/
RawMemory = function() { };
RawMemory.prototype =
{
/**
* Get a raw string representation of the Memory object.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/205619121-RawMemory#get}
*
* @type {function}
*
* @return {string}
*/
get: function() { },
/**
* Set new memory value.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/205619121-RawMemory#set}
*
* @type {function}
*
* @param {string} value
*
* @return {void}
*/
set: function(value) { }
};