BizHawk/BizHawk.MultiClient/tools/LuaFiles.cs

52 lines
1.1 KiB
C#
Raw Normal View History

2011-05-06 23:08:50 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BizHawk.MultiClient
{
class LuaFiles
{
public string Name;
public string Path;
public bool Enabled;
2011-05-07 00:07:27 +00:00
public bool IsSeparator;
2011-05-06 23:08:50 +00:00
public LuaFiles(string path)
{
Name = "";
Path = path;
Enabled = true;
}
public LuaFiles(string name, string path, bool enabled)
{
Name = name;
Path = path;
Enabled = enabled;
2011-05-07 00:07:27 +00:00
IsSeparator = false;
}
public LuaFiles(bool isSeparator)
{
IsSeparator = isSeparator;
Name = "";
Path = "";
Enabled = false;
2011-05-06 23:08:50 +00:00
}
public LuaFiles(LuaFiles l)
{
Name = l.Name;
Path = l.Path;
Enabled = l.Enabled;
2011-05-07 00:07:27 +00:00
IsSeparator = l.IsSeparator;
2011-05-06 23:08:50 +00:00
}
public void Toggle()
{
Enabled ^= true;
}
}
}