mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 07:33:12 +09:00
Started refactor to use typescript
This commit is contained in:
1 parent
9f3978e0b5
commit
a4ee6f82cb
16 files changed
+264
-264
No files matched your search
Vendored
+39
@@ -0,0 +1,39 @@
|
||||
type ClusterioConfig = {
|
||||
factorioDirectory: string,
|
||||
instanceDirectory: string,
|
||||
databaseDirectory: string,
|
||||
publicIP: string,
|
||||
masterIP: string,
|
||||
masterPort: number,
|
||||
sslPort: number,
|
||||
sslCert: string,
|
||||
sslPrivKey: string,
|
||||
masterAuthToken: string,
|
||||
masterAuthSecret: string,
|
||||
username: string,
|
||||
token: string,
|
||||
factorio_version: string,
|
||||
verify_user_identity: boolean,
|
||||
auto_pause: boolean,
|
||||
allow_commands: "admins-only" | "true" | "false",
|
||||
game_password: string,
|
||||
description: string,
|
||||
visibility: {
|
||||
public: boolean,
|
||||
lan: boolean
|
||||
},
|
||||
itemStats: {
|
||||
maxEntries: number,
|
||||
entriesPerSecond: number
|
||||
},
|
||||
logItemTransfers: boolean,
|
||||
disableFairItemDistribution: boolean,
|
||||
uploadModsToMaster: boolean,
|
||||
msBetweenCommands: 10,
|
||||
allowRemoteCommandExecution: boolean,
|
||||
enableCrossServerShout: boolean,
|
||||
mirrorAllChat: boolean,
|
||||
autosaveInterval: 600000,
|
||||
disablePrometheusPushgateway: boolean,
|
||||
disableImportsOfEverythingExceptElectricity: boolean
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
type Mod = {
|
||||
modName: string,
|
||||
hash: string,
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
interface Request {
|
||||
route: {[name: string]: any}
|
||||
}
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
interface Slave {
|
||||
time?: string,
|
||||
rconPort?: string,
|
||||
rconPassword?: string,
|
||||
serverPort?: string,
|
||||
unique?: string, // this one isn't really optional, but I got tired of fighting with types and rewriting logic in master.ts
|
||||
publicIP?: string,
|
||||
mods?: Mod[],
|
||||
instanceName?: string,
|
||||
playerCount?: string | number,
|
||||
mac?: string,
|
||||
meta?: {
|
||||
[name:string]:any,
|
||||
},
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
type Slaves = {
|
||||
[name: string]: Slave,
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
type item = {
|
||||
name: string,
|
||||
count: number,
|
||||
instanceName?: string,
|
||||
instanceID?: string,
|
||||
}
|
||||
Reference in new issue
Block a user