Adding basic Player and Server class definitions

This commit is contained in:
Daniel Xie
2016-10-14 16:02:06 -05:00
parent 3ded0f05c0
commit 9772525263
2 changed files with 68 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
//Netburner Server class
// Parent class for a Server object. PlayerServer and NPCServer inherit from this
netburner.Server = {
//Connection information
ip: "0.0.0.0",
isOnline: false,
ownedByPlayer: false,
//Properties
max_ram: 1, //GB
ram_used: 0,
scripts = [];
//Manual hack state information
is_hacking: false,
hacking_progress: 0,
};