-
Notifications
You must be signed in to change notification settings - Fork 9
/
SplitterFactory.cs
18 lines (18 loc) · 968 Bytes
/
SplitterFactory.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#if !DebugInfo
using LiveSplit.Model;
using LiveSplit.UI.Components;
using System;
using System.Reflection;
namespace LiveSplit.Celeste {
public class SplitterFactory : IComponentFactory {
public string ComponentName { get { return "Celeste Autosplitter v" + this.Version.ToString(); } }
public string Description { get { return "Autosplitter for Celeste"; } }
public ComponentCategory Category { get { return ComponentCategory.Control; } }
public IComponent Create(LiveSplitState state) { return new SplitterComponent(state); }
public string UpdateName { get { return this.ComponentName; } }
public string UpdateURL { get { return "https://raw.githubusercontent.com/ShootMe/LiveSplit.Celeste/master/"; } }
public string XMLURL { get { return this.UpdateURL + "Components/Updates.xml"; } }
public Version Version { get { return Assembly.GetExecutingAssembly().GetName().Version; } }
}
}
#endif