Difference between revisions of "Source Code Reference"

From Screeps Wiki
Jump to navigation Jump to search
(Creating source code references (start))
 
 
Line 39: Line 39:
   
 
==R==
 
==R==
  +
[https://github.com/screeps/engine/blob/master/src/game/rooms.js room.js] - Various room methods are here,
  +
 
[https://github.com/screeps/driver/blob/master/lib/runtime/runtime.js runtime.js] - [[Intent|Intents]] are calculated cost wise here, rawMemory and other various things are here.
 
[https://github.com/screeps/driver/blob/master/lib/runtime/runtime.js runtime.js] - [[Intent|Intents]] are calculated cost wise here, rawMemory and other various things are here.
   

Latest revision as of 19:05, 10 January 2021

Occasionally or for curiosity it is useful to see how the Screep's game itself handles things. The private server source code is available to view on github, along with the source docs and some other things. It is important to note, that this does not provide all data on the MMO (main server) code-side of screeps as some things are not available to view. Things such as Shards, deep market information to name a few, can not be found here as their exclusively MMO and not publicly published. However, there are still many useful things to find. This list is sorted alphabetically for topic with a short description of the links, CTRL+F or whatever your native search is for browser to search keywords or look find what your looking for.

A[edit | edit source]

B[edit | edit source]

C[edit | edit source]

Creep.js - Here is all creep methods such as transfer, withdraw, moveTo, ect. These actions go though various 'checks' as most methods to either return errors or create intents for the game to process.

Cronjobs.js - Here various cronjobs are set and scheduled, this includes things such as Invader and Stronghold generation, powerBanks and deposits,

D[edit | edit source]

E[edit | edit source]

F[edit | edit source]

G[edit | edit source]

H[edit | edit source]

I[edit | edit source]

J[edit | edit source]

K[edit | edit source]

L[edit | edit source]

M[edit | edit source]

N[edit | edit source]

O[edit | edit source]

P[edit | edit source]

Q[edit | edit source]

R[edit | edit source]

room.js - Various room methods are here,

runtime.js - Intents are calculated cost wise here, rawMemory and other various things are here.

S[edit | edit source]

strongholds.js (screeps/common) - Templates for strongholds are stored here, and rewards

stronghold.js (engine/intents) - Various tasks are here such as refilling towers, creeps, preforming maintenance with towers, tower attack logic, anti nuke logic, different decks (invader creeps) for levels and their logic.

T[edit | edit source]

U[edit | edit source]

V[edit | edit source]

W[edit | edit source]

X[edit | edit source]

Y[edit | edit source]

Z[edit | edit source]