Set bool to false for SSC config enabled.
Add test script that will auto gen documentation.
This commit is contained in:
parent
b031f45cb0
commit
5e2f0d3604
2 changed files with 18 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ namespace TShockAPI.ServerSideCharacters
|
|||
public class ServerSideConfig
|
||||
{
|
||||
[Description("Enable server side characters, This stops the client from saving character data! EXPERIMENTAL!!!!!")]
|
||||
public bool Enabled;
|
||||
public bool Enabled = false;
|
||||
|
||||
[Description("How often SSC should save, in minutes.")]
|
||||
public int ServerSideCharacterSave = 5;
|
||||
|
|
|
|||
17
test_release.py
Normal file
17
test_release.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import subprocess
|
||||
import shutil
|
||||
import os.path
|
||||
import zipfile
|
||||
|
||||
def generate_release():
|
||||
zip = zipfile.ZipFile("tshock_release", "r")
|
||||
zip.extractall()
|
||||
|
||||
def generate_configs():
|
||||
subprocess.call(['/usr/bin/mono', 'TerrariaServer.exe', '-dump'])
|
||||
if (!os.path.isfile('ConfigDescriptions.txt') || !os.path.isfile('PermissionsDescriptions.txt') || !os.path.isfile('ServerSideConfigDescriptions.txt')):
|
||||
raise CalledProcessError(1)
|
||||
|
||||
if __name__ == '__main__':
|
||||
generate_release()
|
||||
generate_configs()
|
||||
Loading…
Add table
Add a link
Reference in a new issue