forked from LiveSplit/LiveSplit.ScriptableAutoSplit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFactory.cs
More file actions
65 lines (55 loc) · 1.43 KB
/
Factory.cs
File metadata and controls
65 lines (55 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using LiveSplit.Model;
using LiveSplit.UI.Components;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
[assembly: ComponentFactory(typeof(Factory))]
namespace LiveSplit.UI.Components
{
public class Factory : IComponentFactory
{
public string ComponentName
{
get { return "Scriptable Auto Splitter"; }
}
public IComponent Create(LiveSplitState state)
{
return new Component();
}
public IComponent Create(LiveSplitState state, String script)
{
return new Component(script);
}
public string UpdateName
{
get { return ComponentName; }
}
public string XMLURL
{
#if RELEASE_CANDIDATE
#else
get { return "http://livesplit.org/update/Components/update.LiveSplit.ScriptableAutoSplit.xml"; }
#endif
}
public string UpdateURL
{
#if RELEASE_CANDIDATE
#else
get { return "http://livesplit.org/update/"; }
#endif
}
public Version Version
{
get { return Version.Parse("1.1.2"); }
}
public ComponentCategory Category
{
get { return ComponentCategory.Control; }
}
public string Description
{
get { return "Allows scripts written in the ASL language to define the splitting behaviour."; }
}
}
}