您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
60 行
1.6 KiB
60 行
1.6 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Metacity.Publish.Editor
|
|
{
|
|
[Serializable]
|
|
public class GameServerPort
|
|
{
|
|
public string name;
|
|
public int port;
|
|
public string protocol;
|
|
}
|
|
|
|
[Serializable]
|
|
public class EnvironmentVariable
|
|
{
|
|
public string name;
|
|
public string value;
|
|
}
|
|
|
|
[Serializable]
|
|
public class Config
|
|
{
|
|
public Config()
|
|
{
|
|
accessToken = null;
|
|
templateName = "demo";
|
|
description = "";
|
|
thumbnail = null;
|
|
memberLimit = 5;
|
|
buildNeeded = false;
|
|
serverType = ServerType.Official;
|
|
serverPath = "";
|
|
executableServerPath = "";
|
|
clientPath = "";
|
|
executableClientPath = "";
|
|
gameServerPorts = new List<GameServerPort>();
|
|
environmentVariables = new List<EnvironmentVariable>();
|
|
}
|
|
|
|
public string accessToken;
|
|
public string userId;
|
|
public string templateId;
|
|
public string buildId;
|
|
public string templateName;
|
|
public string description;
|
|
[CanBeNull] public string thumbnail;
|
|
public int memberLimit;
|
|
public bool buildNeeded;
|
|
public ServerType serverType;
|
|
public string serverPath;
|
|
public string executableServerPath;
|
|
public string clientPath;
|
|
public string executableClientPath;
|
|
public List<GameServerPort> gameServerPorts;
|
|
public List<EnvironmentVariable> environmentVariables;
|
|
|
|
}
|
|
}
|