Mother2GbaTranslation/ScriptTool/ScriptToolGui/NavigationEntry.cs

48 lines
1.2 KiB
C#
Raw Normal View History

2015-03-20 21:40:43 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ScriptToolGui
{
abstract class NavigationEntry
2015-03-20 21:40:43 +00:00
{
public abstract NavigationType Type { get; }
}
enum NavigationType
{
MatchedGroup,
Reference
}
class MatchedGroupNavigationEntry : NavigationEntry
{
public override NavigationType Type { get { return NavigationType.MatchedGroup; } }
public MatchedGroup Group { get; private set; }
public MatchedGroupCollection Collection { get; private set; }
public MatchedGroupNavigationEntry(MatchedGroup group, MatchedGroupCollection collection)
{
Group = group;
Collection = collection;
}
}
class ReferenceNavigationEntry : NavigationEntry
{
public override NavigationType Type { get { return NavigationType.Reference; } }
2015-03-20 21:40:43 +00:00
public string Label { get; private set; }
public Game Game { get; private set; }
2015-03-20 21:40:43 +00:00
public ReferenceNavigationEntry(Game game, string label)
2015-03-20 21:40:43 +00:00
{
Game = game;
Label = label;
}
}
}