mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 08:18:49 -07:00

* 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
15 lines
495 B
C#
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
|
|
}
|