mirror of
https://github.com/opensim/opensim.git
synced 2026-05-27 20:35:59 +08:00
*Added TYPE_STRING_NOT_EMPTY that requires some sort of text to be entered *Added another parameter to addConfigurationOption called use_default_no_prompt that will not ask via the console a configuration option; it will use whatever is in the config file. If nothing is in the config file for that option, it will force itself to use default
37 lines
967 B
C#
37 lines
967 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace OpenSim.Framework.Configuration
|
|
{
|
|
public class ConfigurationOption
|
|
{
|
|
public enum ConfigurationTypes
|
|
{
|
|
TYPE_STRING,
|
|
TYPE_STRING_NOT_EMPTY,
|
|
TYPE_UINT16,
|
|
TYPE_UINT32,
|
|
TYPE_UINT64,
|
|
TYPE_INT16,
|
|
TYPE_INT32,
|
|
TYPE_INT64,
|
|
TYPE_IP_ADDRESS,
|
|
TYPE_CHARACTER,
|
|
TYPE_BOOLEAN,
|
|
TYPE_BYTE,
|
|
TYPE_LLUUID,
|
|
TYPE_LLVECTOR3,
|
|
TYPE_FLOAT,
|
|
TYPE_DOUBLE
|
|
};
|
|
|
|
public string configurationKey = "";
|
|
public string configurationQuestion = "";
|
|
public string configurationDefault = "";
|
|
|
|
public ConfigurationTypes configurationType = ConfigurationTypes.TYPE_STRING;
|
|
public bool configurationUseDefaultNoPrompt = false;
|
|
}
|
|
}
|