IT BUILDS!!!
- Removed LocalizationServices and other sus things. - Rewrote AssemblyLoader [In Progress] SafeStorageService [In Progress] LuaScriptLoader
This commit is contained in:
@@ -1,51 +1,43 @@
|
||||
using System;
|
||||
using System.Xml.Linq;
|
||||
using Barotrauma.LuaCs.Services;
|
||||
using Barotrauma.Networking;
|
||||
|
||||
namespace Barotrauma.LuaCs.Data;
|
||||
|
||||
// TODO: Finish
|
||||
/// <summary>
|
||||
/// Parsed data from a configuration xml.
|
||||
/// </summary>
|
||||
public partial interface IConfigInfo : IDataInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the data type this should be initialized to (ie. string, int, vector, etc.)
|
||||
/// Custom types can be registered by mods.
|
||||
/// Specifies the type initializer that will be used to instantiate the config var.
|
||||
/// </summary>
|
||||
Type DataType { get; }
|
||||
/// <summary>
|
||||
/// String version of the default value.
|
||||
/// The default value.
|
||||
/// </summary>
|
||||
string DefaultValue { get; }
|
||||
OneOf.OneOf<string, XElement> DefaultValue { get; }
|
||||
/// <summary>
|
||||
/// The value the last time this config was saved, if found in /data/.
|
||||
/// The value the last time this config was saved. If not found, returns the default value.
|
||||
/// <br/><b>[If(Type='<see cref="string"/>')]</b><br/>
|
||||
/// The value is from the 'Value' Attribute. Typically used for types with single/simple values, such as primitives.
|
||||
/// <br/><b>[If(Type='<see cref="XElement"/>')]</b><br/>
|
||||
/// The value is from the first 'Value' child element. Typically used with complex config types, such as range and list.
|
||||
/// </summary>
|
||||
string StoredValue { get; }
|
||||
OneOf.OneOf<string, XElement> Value { get; }
|
||||
/// <summary>
|
||||
/// Custom data storage for other type-specific information needed. IE. Used to store the min,
|
||||
/// max and step values for the <b>IConfigRangeEntry(T)</b>.
|
||||
/// In what <see cref="RunState"/>(s) is this config editable. Will be editable in the selected state, and lower value states.
|
||||
/// <br/><br/>
|
||||
/// <b>[Important]</b><br/> Setting this to value lower than 'Configuration` will render this config read-only.
|
||||
/// <br/><br/><b>Expected Behaviour</b>:
|
||||
/// <br/><b>[<see cref="RunState.Unloaded"/>|<see cref="RunState.Parsed"/>]</b>: Read-Only.
|
||||
/// <br/><b>[<see cref="RunState.Configuration"/>]</b>: Can only be changed at the Main Menu (not in a lobby).
|
||||
/// <br/><b>[<see cref="RunState.Running"/>]</b>: Can be changed at the Main Menu and while a lobby is active.
|
||||
/// </summary>
|
||||
string CustomParameters { get; }
|
||||
/// <summary>
|
||||
/// <b>[Multiplayer]</b><br/>
|
||||
/// What permissions do clients require to change this setting.
|
||||
/// </summary>
|
||||
ClientPermissions RequiredPermissions { get; }
|
||||
/// <summary>
|
||||
/// In what <see cref="RunState"/>s is this config editable.
|
||||
/// <br/>
|
||||
/// Note: Setting this to value lower than 'Configuration` will render this config read-only.
|
||||
/// </summary>
|
||||
RunState CanEditStates { get; }
|
||||
RunState EditableStates { get; }
|
||||
/// <summary>
|
||||
/// Network synchronization rules for this config.
|
||||
/// </summary>
|
||||
NetSync NetSync { get; }
|
||||
/// <summary>
|
||||
/// User friendly name or Localization Token.
|
||||
/// </summary>
|
||||
string DisplayName { get; }
|
||||
/// <summary>
|
||||
/// User friendly description or Localization Token.
|
||||
/// </summary>
|
||||
string Description { get; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user