| 8 | |
| 9 | // @Entity |
| 10 | export default class InstanceConfig implements IGlobalInstanceConfig { |
| 11 | public nickname = "Undefined"; |
| 12 | public startCommand = ""; |
| 13 | public stopCommand = "^C"; |
| 14 | public cwd = "."; |
| 15 | public ie = "utf-8"; |
| 16 | public oe = "utf-8"; |
| 17 | public createDatetime = Date.now(); |
| 18 | public lastDatetime = Date.now(); |
| 19 | public type = Instance.TYPE_UNIVERSAL; |
| 20 | public tag: string[] = []; |
| 21 | public endTime: number = 0; |
| 22 | public fileCode: string = "utf-8"; |
| 23 | public processType: ProcessType = "general"; |
| 24 | |
| 25 | /** The command used for executing the update command */ |
| 26 | public updateCommand: string = ""; |
| 27 | |
| 28 | public runAs: string = ""; |
| 29 | public crlf = os.platform() === "win32" ? 2 : 1; // 1: \n 2: \r\n |
| 30 | public category = 0; |
| 31 | public basePort = 0; |
| 32 | |
| 33 | // Steam RCON protocol |
| 34 | public enableRcon = false; |
| 35 | public rconPassword = ""; |
| 36 | public rconPort = 0; |
| 37 | public rconIp = ""; |
| 38 | |
| 39 | // custom command list |
| 40 | public actionCommandList: IActionCommand[] = []; |
| 41 | |
| 42 | // terminal option |
| 43 | public terminalOption = { |
| 44 | haveColor: false, |
| 45 | pty: true, |
| 46 | ptyWindowCol: 164, |
| 47 | ptyWindowRow: 40 |
| 48 | }; |
| 49 | |
| 50 | // Event task |
| 51 | public eventTask = { |
| 52 | autoStart: false, |
| 53 | autoRestart: false, |
| 54 | autoRestartMaxTimes: -1, |
| 55 | ignore: false |
| 56 | }; |
| 57 | |
| 58 | // java |
| 59 | public java: IInstanceJavaConfig = { |
| 60 | id: "" |
| 61 | }; |
| 62 | |
| 63 | // Extend |
| 64 | public docker: IGlobalInstanceDockerConfig = { |
| 65 | updateCommandImage: "", |
| 66 | containerName: "", |
| 67 | image: "", |
nothing calls this directly
no outgoing calls
no test coverage detected