Set bool to false for SSC config enabled.

Add test script that will auto gen documentation.
This commit is contained in:
Zack Piispanen 2015-03-17 13:19:02 -04:00
parent b031f45cb0
commit 5e2f0d3604
2 changed files with 18 additions and 1 deletions

View file

@ -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
View 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()