tern-screeps 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm.yml +33 -0
- package/README.md +11 -11
- package/build.js +2172 -2156
- package/defs/screeps.json +62 -8
- package/package.json +18 -18
- package/check.js +0 -49
package/defs/screeps.json
CHANGED
|
@@ -2239,7 +2239,7 @@
|
|
|
2239
2239
|
},
|
|
2240
2240
|
"StructureTerminal": {
|
|
2241
2241
|
"!type": "fn()",
|
|
2242
|
-
"!doc": "Sends any resources to a Terminal in another room. The destination Terminal can belong to any player. If its storage is full, the resources are dropped on the ground. Each transaction requires additional energy (regardless of the transfer resource type) according to this formula: ceil(0.2 * amount * linearDistanceBetweenRooms). For example, sending 100 mineral units from W1N1 to W2N3 will consume 40 energy units. You can track your incoming and outgoing transactions and estimate range cost between rooms using the Game.market object. Only one Terminal per room is allowed that can be addressed by Room.terminal property.",
|
|
2242
|
+
"!doc": "Sends any resources to a Terminal in another room. The destination Terminal can belong to any player. If its storage is full, the resources are dropped on the ground. Each transaction requires additional energy (regardless of the transfer resource type) according to this formula: ceil(0.2 * amount * linearDistanceBetweenRooms). For example, sending 100 mineral units from W1N1 to W2N3 will consume 40 energy units. You can track your incoming and outgoing transactions and estimate range cost between rooms using the Game.market object. Only one Terminal per room is allowed that can be addressed by Room.terminal property.\n\nTerminals in rooms that share a side can always trade with each other. Transfers and market deals between other rooms need a chain of active terminal nodes connecting the rooms, see Game.map.hasTerminalConnection. Connectivity is determined at the start of each tick and does not change until the next tick.",
|
|
2243
2243
|
"prototype": {
|
|
2244
2244
|
"store": {
|
|
2245
2245
|
"!doc": "A Store object that contains cargo of this creep.",
|
|
@@ -2297,7 +2297,7 @@
|
|
|
2297
2297
|
}
|
|
2298
2298
|
},
|
|
2299
2299
|
"send": {
|
|
2300
|
-
"!doc": "Sends resource to a Terminal in another room with the specified name.\n\nArguments:\n* resourceType - One of the RESOURCE_* constants.\n* amount - The amount of resources to be sent. The minimum amount is 100.\n* destination - The name of the target room. You don't have to gain visibility in this room.\n* description (optional) - The description of the transaction. It is visible to the recipient. The maximum length is 100 characters.\n\nCPU cost: CONST",
|
|
2300
|
+
"!doc": "Sends resource to a Terminal in another room with the specified name. The destination room has to be connected to this terminal's room in the current tick, otherwise ERR_NO_PATH is returned.\n\nArguments:\n* resourceType - One of the RESOURCE_* constants.\n* amount - The amount of resources to be sent. The minimum amount is 100.\n* destination - The name of the target room. You don't have to gain visibility in this room.\n* description (optional) - The description of the transaction. It is visible to the recipient. The maximum length is 100 characters.\n\nCPU cost: CONST",
|
|
2301
2301
|
"!type": "fn(resourceType: string, amount: number, destination: string, description?: string) -> number"
|
|
2302
2302
|
},
|
|
2303
2303
|
"cooldown": {
|
|
@@ -2639,6 +2639,52 @@
|
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
2641
2641
|
},
|
|
2642
|
+
"StructureTerminalNode": {
|
|
2643
|
+
"!type": "fn()",
|
|
2644
|
+
"!doc": "A non-player structure that relays terminal transfers. Every room of the world has one terminal node in a wall tile. Transfers and market deals between rooms that don't share a side need a chain of active nodes in rooms sharing sides. Connectivity is fixed for each tick and uses the nodes that were active at the start of the tick.\n\nCreeps can damage nodes with melee and targeted ranged attacks, and towers and nukes can damage them as well. Players cannot repair, dismantle or destroy a node. A node repairs itself by TERMINAL_NODE_REPAIR_PER_TICK hits every tick and stays active while damaged. A destroyed node leaves a ruin; when neither the node nor its ruin remains, a new inactive node appears and becomes active when it regrows to full hits.",
|
|
2645
|
+
"prototype": {
|
|
2646
|
+
"pos": {
|
|
2647
|
+
"!doc": "An object representing the position of this object in a room.",
|
|
2648
|
+
"!type": "+RoomPosition"
|
|
2649
|
+
},
|
|
2650
|
+
"room": {
|
|
2651
|
+
"!doc": "The link to the Room object of this object. May be undefined in case if an object is a flag and is placed in a room that is not visible to you.",
|
|
2652
|
+
"!type": "+Room"
|
|
2653
|
+
},
|
|
2654
|
+
"effects": {
|
|
2655
|
+
"!doc": "Applied effects, an array of objects.",
|
|
2656
|
+
"!type": "[Effect]"
|
|
2657
|
+
},
|
|
2658
|
+
"id": {
|
|
2659
|
+
"!type": "string",
|
|
2660
|
+
"!doc": "A unique object identificator. You can use `Game.getObjectById` method to retrieve an object instance by its `id`."
|
|
2661
|
+
},
|
|
2662
|
+
"hits": {
|
|
2663
|
+
"!doc": "The current amount of hit points of the structure.",
|
|
2664
|
+
"!type": "number"
|
|
2665
|
+
},
|
|
2666
|
+
"hitsMax": {
|
|
2667
|
+
"!doc": "The total amount of hit points of the structure.",
|
|
2668
|
+
"!type": "number"
|
|
2669
|
+
},
|
|
2670
|
+
"structureType": {
|
|
2671
|
+
"!doc": "One of the STRUCTURE_* constants.",
|
|
2672
|
+
"!type": "string"
|
|
2673
|
+
},
|
|
2674
|
+
"destroy": {
|
|
2675
|
+
"!doc": "Destroy this structure immediately. You are not allowed to destroy a structure when there are hostile creeps in the room.\n\nCPU cost: CONST",
|
|
2676
|
+
"!type": "fn() -> number"
|
|
2677
|
+
},
|
|
2678
|
+
"notifyWhenAttacked": {
|
|
2679
|
+
"!doc": "Toggle auto notification when the structure is under attack. The notification will be sent to your account email. Turned on by default.\n\nArguments:\n* enabled - Whether to enable notification or disable.\n\nCPU cost: CONST",
|
|
2680
|
+
"!type": "fn(enabled: bool) -> number"
|
|
2681
|
+
},
|
|
2682
|
+
"isActive": {
|
|
2683
|
+
"!doc": "Whether this node relays terminal transfers. A regrowing node is inactive until it reaches full hits.\n\nCPU cost: LOW",
|
|
2684
|
+
"!type": "fn() -> bool"
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
},
|
|
2642
2688
|
"StructureFactory": {
|
|
2643
2689
|
"!type": "fn()",
|
|
2644
2690
|
"!doc": "Produces trade commodities from base minerals and other commodities.",
|
|
@@ -2902,7 +2948,7 @@
|
|
|
2902
2948
|
}
|
|
2903
2949
|
},
|
|
2904
2950
|
"Room": {
|
|
2905
|
-
"!type
|
|
2951
|
+
"!type": "fn()",
|
|
2906
2952
|
"!doc": "An object representing the room in which your units and structures are in. It can be used to look around, find paths, etc. Every object in the room contains its linked Room instance in the `room` property.",
|
|
2907
2953
|
"prototype": {
|
|
2908
2954
|
"controller": {
|
|
@@ -3002,7 +3048,7 @@
|
|
|
3002
3048
|
}
|
|
3003
3049
|
},
|
|
3004
3050
|
"RoomPosition": {
|
|
3005
|
-
"!type
|
|
3051
|
+
"!type": "fn(x: number, y: number, roomName: string) -> +RoomPosition",
|
|
3006
3052
|
"!doc": "An object representing the specified position in the room. Every object in the room contains RoomPosition as the pos property. The position object of a custom location can be obtained using the `Room.getPositionAt()` method or using the constructor.",
|
|
3007
3053
|
"prototype": {
|
|
3008
3054
|
"roomName": {
|
|
@@ -3072,7 +3118,7 @@
|
|
|
3072
3118
|
}
|
|
3073
3119
|
},
|
|
3074
3120
|
"RoomVisual": {
|
|
3075
|
-
"!type
|
|
3121
|
+
"!type": "fn(roomName: string) -> +RoomVisual",
|
|
3076
3122
|
"!doc": "Room visuals provide a way to show various visual debug info in game rooms. You can use the RoomVisual object to draw simple shapes that are visible only to you.",
|
|
3077
3123
|
"roomName": {
|
|
3078
3124
|
"!doc": "The name of the room.",
|
|
@@ -3346,12 +3392,12 @@
|
|
|
3346
3392
|
"!type": "fn(type: string, resourceType: string, price: number, totalAmount: number, roomName?: string) -> number"
|
|
3347
3393
|
},
|
|
3348
3394
|
"deal": {
|
|
3349
|
-
"!doc": "Execute a trade deal from your Terminal to another player's Terminal using the specified buy/sell order. Your Terminal will be charged energy units of transfer cost regardless of the order resource type. You can use Game.market.calcTransactionCost method to estimate it. When multiple players try to execute the same deal, the one with the shortest distance takes precedence.\n\nArguments:\n* orderId - The order ID as provided in Game.market.getAllOrders.\n* amount - The amount of resources to transfer. The minimum amount is 100.\n* targetRoomName (optional) - The name of your room which has to contain an active Terminal with enough amount of energy. This argument is not used when the order resource type equals to SUBSCRIPTION_TOKEN.\n\nCPU cost: CONST",
|
|
3395
|
+
"!doc": "Execute a trade deal from your Terminal to another player's Terminal using the specified buy/sell order. Your Terminal will be charged energy units of transfer cost regardless of the order resource type. You can use Game.market.calcTransactionCost method to estimate it. When multiple players try to execute the same deal, the one with the shortest distance takes precedence.\n\nFor orders of room resources, the order's room has to be connected to targetRoomName in the current tick (see Game.map.hasTerminalConnection), otherwise ERR_NO_PATH is returned.\n\nArguments:\n* orderId - The order ID as provided in Game.market.getAllOrders.\n* amount - The amount of resources to transfer. The minimum amount is 100.\n* targetRoomName (optional) - The name of your room which has to contain an active Terminal with enough amount of energy. This argument is not used when the order resource type equals to SUBSCRIPTION_TOKEN.\n\nCPU cost: CONST",
|
|
3350
3396
|
"!type": "fn(orderId: string, amount: number, targetRoomName?: string) -> number"
|
|
3351
3397
|
},
|
|
3352
3398
|
"getAllOrders": {
|
|
3353
|
-
"!doc": "Get other players' orders currently active on the market.\n\nArguments:\n* filter (optional) - An object or function that will filter the resulting list using the lodash.filter method.\n\nCPU cost: AVERAGE",
|
|
3354
|
-
"!type": "fn(filter?: any) -> [MarketOrder]"
|
|
3399
|
+
"!doc": "Get other players' orders currently active on the market.\n\nArguments:\n* filter (optional) - An object or function that will filter the resulting list using the lodash.filter method.\n* roomName (optional) - If specified, only orders of room resources in rooms connected to this room in the current tick are returned, see Game.map.hasTerminalConnection. Orders in this room itself are always returned. The room needs neither vision nor a terminal. Orders of account-bound resources are returned regardless of the room. If the room name is invalid or lies outside the world, no orders of room resources are returned.\n\nCPU cost: AVERAGE",
|
|
3400
|
+
"!type": "fn(filter?: any, roomName?: string) -> [MarketOrder]"
|
|
3355
3401
|
},
|
|
3356
3402
|
"getOrderById": {
|
|
3357
3403
|
"!doc": "Retrieve info for specific market order.\n\nArguments:\n* orderId - The order ID.\n\nCPU cost: LOW",
|
|
@@ -3392,6 +3438,10 @@
|
|
|
3392
3438
|
"!doc": "Get linear distance (in rooms) between two rooms. You can use this function to estimate the energy cost of sending resources through terminals, or using observers and nukes. \n\nArguments:\n* roomName1 - The name of the first room.\n* roomName2 - The name of the second room.\n* continuous (optional) - Whether to treat the world map continuous on borders. Set to true if you want to calculate the terminal send or trade fee.\n\nCPU cost: NONE",
|
|
3393
3439
|
"!type": "fn(roomName1: string, roomName2: string, continuous?: boolean) -> number"
|
|
3394
3440
|
},
|
|
3441
|
+
"hasTerminalConnection": {
|
|
3442
|
+
"!doc": "Check whether terminals in the two rooms can trade with each other in the current tick, using StructureTerminal.send or Game.market.deal. Neither room needs vision or a terminal.\n\nA room is connected to itself and to the rooms that share a side with it. Other rooms are connected when each of them shares a side with a room that has an active terminal node, and these two nodes belong to one chain of active nodes in rooms sharing sides. The terminal rooms' own nodes do not count, and rooms that only meet at a corner are not joined. The result is based on the nodes that were active at the start of the tick. Returns false when a room name is invalid or the room lies outside the world.\n\nArguments:\n* roomName1 - The name of the first room.\n* roomName2 - The name of the second room.\n\nCPU cost: NONE",
|
|
3443
|
+
"!type": "fn(roomName1: string, roomName2: string) -> bool"
|
|
3444
|
+
},
|
|
3395
3445
|
"getWorldSize": {
|
|
3396
3446
|
"!doc": "Returns the world size as a number of rooms between world corners. For example, for a world with rooms from W50N50 to E50S50 this method will return 102.\n\nCPU cost: NONE",
|
|
3397
3447
|
"!type": "fn() -> number"
|
|
@@ -3465,6 +3515,7 @@
|
|
|
3465
3515
|
"ERR_NOT_ENOUGH_EXTENSIONS": "number",
|
|
3466
3516
|
"ERR_RCL_NOT_ENOUGH": "number",
|
|
3467
3517
|
"ERR_GCL_NOT_ENOUGH": "number",
|
|
3518
|
+
"ERR_ACCESS_DENIED": "number",
|
|
3468
3519
|
"FIND_EXIT_TOP": "number",
|
|
3469
3520
|
"FIND_EXIT_RIGHT": "number",
|
|
3470
3521
|
"FIND_EXIT_BOTTOM": "number",
|
|
@@ -3606,6 +3657,7 @@
|
|
|
3606
3657
|
"STRUCTURE_NUKER": "string",
|
|
3607
3658
|
"STRUCTURE_FACTORY": "string",
|
|
3608
3659
|
"STRUCTURE_INVADER_CORE": "string",
|
|
3660
|
+
"STRUCTURE_TERMINAL_NODE": "string",
|
|
3609
3661
|
"CONSTRUCTION_COST": "object",
|
|
3610
3662
|
"CONSTRUCTION_COST_ROAD_SWAMP_RATIO": "number",
|
|
3611
3663
|
"CONSTRUCTION_COST_ROAD_WALL_RATIO": "number",
|
|
@@ -3683,6 +3735,8 @@
|
|
|
3683
3735
|
"TERMINAL_SEND_COST": "number",
|
|
3684
3736
|
"TERMINAL_MIN_SEND": "number",
|
|
3685
3737
|
"TERMINAL_COOLDOWN": "number",
|
|
3738
|
+
"TERMINAL_NODE_HITS": "number",
|
|
3739
|
+
"TERMINAL_NODE_REPAIR_PER_TICK": "number",
|
|
3686
3740
|
"CONTAINER_HITS": "number",
|
|
3687
3741
|
"CONTAINER_CAPACITY": "number",
|
|
3688
3742
|
"CONTAINER_DECAY": "number",
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "tern-screeps",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "ternjs definitions for Screeps",
|
|
5
|
-
"main": "defs/screeps.json",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"prepublishOnly": "node build"
|
|
8
|
-
},
|
|
9
|
-
"author": "Artem Chivchalov",
|
|
10
|
-
"license": "ISC",
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/screeps/tern-screeps.git"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@screeps/common": "
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "tern-screeps",
|
|
3
|
+
"version": "0.0.8",
|
|
4
|
+
"description": "ternjs definitions for Screeps",
|
|
5
|
+
"main": "defs/screeps.json",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"prepublishOnly": "node build"
|
|
8
|
+
},
|
|
9
|
+
"author": "Artem Chivchalov",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/screeps/tern-screeps.git"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@screeps/common": "2.17.0"
|
|
17
|
+
}
|
|
18
|
+
}
|
package/check.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
const _ = require('lodash');
|
|
2
|
-
|
|
3
|
-
const defs = require('./defs/screeps');
|
|
4
|
-
|
|
5
|
-
const rules = {
|
|
6
|
-
"variable.language": "PowerCreep|InterShardMemory|Terrain|Tombstone|Spawning|require|RoomVisual|RoomObject|OwnedStructure|StructurePortal|StructureNuker|Nuke|StructureSpawn|StructureController|StructureRoad|StructureContainer|StructureExtension|StructureWall|StructureRampart|StructureTower|StructureStorage|StructureLink|StructureExtractor|StructureLab|StructureTerminal|StructureObserver|StructurePowerSpawn|StructureKeeperLair|StructurePowerBank|PathFinder|Mineral|CostMatrix|Creep|ConstructionSite|Energy|Flag|Room|RoomPosition|Source|Structure|Game|Memory|RawMemory|Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",
|
|
7
|
-
keyword: "const|yield|import|get|set|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static",
|
|
8
|
-
"storage.type": "const|let|var|function",
|
|
9
|
-
"constant.language": "%{constants}",
|
|
10
|
-
"support.function": "creeps|spawns|flags|structures|time|id|owner|username|room|pos|memory|structureType|my|spawning|energy|energyCapacity|hits|hitsMax|transferEnergy|name|type|ticksToLive|remainingTime|needTime|fatigue|move|moveTo|harvest|pickup|getActiveBodyparts|attack|rangedAttack|heal|build|repair|lookAt|findPath|roomName|inRangeTo|isNearTo|getDirectionTo|findPathTo|findInRange|progress|progressTotal|exit|ticksToRegeneration|notify|getObjectById|getPositionAt|createFlag|createConstructionSite|suicide|remove|alert|heuristicWeight|maxOps|ignoreCreeps|ignoreDestructibleStructures|avoid|ignore|findClosestByPath|rangedHeal|rangedMassAttack|say|lookAtArea|color|reusePath|getUsed|rooms|mode|lookForAt|lookForAtArea|getRangeTo|isEqualTo|ticksToSpawn|findExit|findExitTo|findRoute|map|level|controller|claimController|unclaim|upgradeController|notifyWhenAttacked|cancelOrder|cooldown|noPathFinding|setColor|setPosition|ticksToDowngrade|moveByPath|look|lookFor|destroy|findClosestByRange|describeExits|ticksToDecay|energyAvailable|energyCapacityAvailable|storage|store|serializeMemory|serialize|serializePath|deserializePath|renewCreep|observeRoom|power|drop|processPower|amount|cpu|limit|tickLimit|bucket|dismantle|search|clone|deserialize|maxRooms|range|plainCost|swampCost|flee|roomCallback|ignoreRoads|isActive|secondaryColor|transfer|mineralType|mineralAmount|send|boost|boostCreep|runReaction|getRoomLinearDistance|recycleCreep|timeToLand|launchRoomName|launchNuke|destination|setPublic|isPublic|constructionSites|withdraw|saying|market|calcTransactionCost|incomingTransactions|outgoingTransactions|cancelOrder|deal|createOrder|getAllOrders|resources|maxCost|incomplete|cost|orders|credits|extendOrder|changeOrderPrice|activateSafeMode|generateSafeMode|safeMode|safeModeAvailable|safeModeCooldown|getOrderById|density|signController|sign|datetime|text|visual|visualizePathStyle|line|circle|rect|poly|text|clear|getSize|width|opacity|lineStyle|radius|fill|stroke|strokeWidth|align|segments|setActiveSegments|foreignSegment|setActiveForeignSegment|setPublicSegments|setDefaultPublicSegment|getWorldSize|shard|spawnCreep|shardLimits|setShardLimits|directions|getHeapStatistics|deathTime|creep|getEventLog|unboostCreep|getRoomTerrain|getTerrain|getLocal|setLocal|getRemote|create|gpl|effects|isPowerEnabled|className|deleteTime|level|powers|spawnCooldownTime|enableRoom|renew|usePower|spawn|getCapacity|getFreeCapacity|getUsedCapacity|body|attackController|reserveController|delete|rename|upgrade|resourceType|reservation|ticksToEnd|upgradeBlocked|produce|ticksToDeploy|structure|destroyTime|depositType|lastCooldown|terminal|find|x|y|data|powerCreeps|gcl|getHistory|ptr|dx|dy|direction|path|ops|routeCallback|resource|flag|source|constructionSite|terrain|transactionId|sender|recipient|resouceType|from|to|description|order|price|created|remainingAmount|active|totalAmount|date|transactions|volume|avgPrice|stddevPrice|effect|ticksRemaining|getRawBuffer|cancel|setDirections|font|backgroundColor|backgroundPadding|getRoomStatus|status|timestamp",
|
|
11
|
-
"constant.language.boolean": "true|false"
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const varLang = rules["variable.language"].split('|');
|
|
15
|
-
const supportFunctions = rules["support.function"].split('|');
|
|
16
|
-
|
|
17
|
-
const classes = _(defs).keys().filter(k => _.isObject(defs[k])).reject(k => k[0] == '!').value();
|
|
18
|
-
//const members = _.reduce(classes, (sum, c) => { sum.push(..._.keys(defs[c])) }, []);
|
|
19
|
-
let members = [];
|
|
20
|
-
|
|
21
|
-
const addMembers = function addMembers(node) {
|
|
22
|
-
for(let k of _.keys(node)) {
|
|
23
|
-
members.push(k);
|
|
24
|
-
if(_.isObject(node[k])) {
|
|
25
|
-
addMembers(node[k]);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
if(node.prototype) {
|
|
29
|
-
addMembers(node.prototype);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
for(let c of classes) {
|
|
34
|
-
addMembers(defs[c]);
|
|
35
|
-
}
|
|
36
|
-
for(let c of _.keys(defs["!define"])) {
|
|
37
|
-
addMembers(defs["!define"][c]);
|
|
38
|
-
}
|
|
39
|
-
members = _(members).reject(v => v == 'prototype' || v[0] == '!').unique().value();
|
|
40
|
-
|
|
41
|
-
//const diff = _.difference(varLang, classes);
|
|
42
|
-
//const diff = _.difference(classes, varLang);
|
|
43
|
-
|
|
44
|
-
const diff = _.difference(members, supportFunctions);
|
|
45
|
-
// const diff = _.difference(supportFunctions, members);
|
|
46
|
-
|
|
47
|
-
console.log(diff.join('|'));
|
|
48
|
-
console.log(JSON.stringify(diff, 0, 2));
|
|
49
|
-
// getCapacity|getFreeCapacity|getUsedCapacity|body|attackController|reserveController|delete|rename|upgrade|resourceType|reservation|ticksToEnd|upgradeBlocked|powerCapacity|canCreateCreep|createCreep|produce|ticksToDeploy|structure|destroyTime|depositType|lastCooldown|terminal|find|x|y|data|powerCreeps|gcl|getHistory|ptr|dx|dy|direction|path|ops|routeCallback|resource|flag|source|constructionSite|terrain|transactionId|sender|recipient|resouceType|from|to|description|order|price|created|remainingAmount|active|totalAmount|date|transactions|volume|avgPrice|stddevPrice|effect|ticksRemaining|getRawBuffer|cancel|setDirections|font|backgroundColor|backgroundPadding
|