first commit
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace ClassicAssist.Launcher
|
||||
{
|
||||
public class ShardManager
|
||||
{
|
||||
private static ShardManager _instance;
|
||||
private static readonly object _lock = new object();
|
||||
|
||||
private ShardManager()
|
||||
{
|
||||
Shards.Add( new ShardEntry
|
||||
{
|
||||
Name = "Official EA Servers",
|
||||
Address = "login.ultimaonline.com",
|
||||
Port = 7775,
|
||||
IsPreset = true,
|
||||
HasStatusProtocol = false,
|
||||
Encryption = true
|
||||
} );
|
||||
|
||||
Shards.Add( new ShardEntry
|
||||
{
|
||||
Name = "UOGamers: Demise", Address = "login.uodemise.com", Port = 2593, IsPreset = true
|
||||
} );
|
||||
|
||||
Shards.Add( new ShardEntry
|
||||
{
|
||||
Name = "UOGamers: Hybrid", Address = "login.uohybrid.com", Port = 2593, IsPreset = true
|
||||
} );
|
||||
|
||||
Shards.Add( new ShardEntry
|
||||
{
|
||||
Name = "Heritage UO", Address = "play.trueuo.com", Port = 2593, IsPreset = true
|
||||
} );
|
||||
|
||||
Shards.Add( new ShardEntry
|
||||
{
|
||||
Name = "UO Forever", Address = "login.uoforever.com", Port = 2599, IsPreset = true
|
||||
} );
|
||||
|
||||
Shards.Add( new ShardEntry
|
||||
{
|
||||
Name = "UO Outlands",
|
||||
Address = "play.uooutlands.com",
|
||||
Port = 2593,
|
||||
IsPreset = true,
|
||||
HasStatusProtocol = false,
|
||||
ShardType = 2
|
||||
} );
|
||||
|
||||
Shards.Add( new ShardEntry
|
||||
{
|
||||
Name = "UO Players",
|
||||
Address = "login.uoplayers.com",
|
||||
Port = 2593,
|
||||
IsPreset = true,
|
||||
HasStatusProtocol = true
|
||||
} );
|
||||
|
||||
Shards.Add( new ShardEntry
|
||||
{
|
||||
Name = "UO:Renaissance",
|
||||
Address = "login.uorenaissance.com",
|
||||
Port = 2593,
|
||||
IsPreset = true,
|
||||
HasStatusProtocol = true
|
||||
} );
|
||||
}
|
||||
|
||||
public ObservableCollection<ShardEntry> Shards { get; set; } = new ObservableCollection<ShardEntry>();
|
||||
|
||||
public static ShardManager GetInstance()
|
||||
{
|
||||
// ReSharper disable once InvertIf
|
||||
if ( _instance == null )
|
||||
{
|
||||
lock ( _lock )
|
||||
{
|
||||
if ( _instance != null )
|
||||
{
|
||||
return _instance;
|
||||
}
|
||||
|
||||
_instance = new ShardManager();
|
||||
return _instance;
|
||||
}
|
||||
}
|
||||
|
||||
return _instance;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user