sodoff/src/Configuration/AssetServerConfig.cs
Robert Paciorek bd6df27c92 assets server "partial" mode improvements
* add support for cache/store assets in partial mode
* use stream approach in assets proxy mode
	* reduce memory usage on proxy big files
	* reduce risk of game client timeouts on slow connection
2024-01-29 21:21:53 +00:00

15 lines
495 B
C#

namespace sodoff.Configuration;
public class AssetServerConfig {
public bool Enabled { get; set; } = false;
public int Port { get; set; } = 5001;
public string URLPrefix { get; set; } = string.Empty;
public AssetServerMode Mode { get; set; }
public string ProviderURL { get; set; } = string.Empty;
public bool SubstituteMissingLocalAssets { get; set; } = false;
public bool UseCache { get; set; } = true;
}
public enum AssetServerMode {
None, Partial, Full
}