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