Add project files.
This commit is contained in:
17
Assets/Cryville/Common/FileStringAttribute.cs
Normal file
17
Assets/Cryville/Common/FileStringAttribute.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace Cryville.Common {
|
||||
public class FileStringAttribute : Attribute {
|
||||
private readonly string filter;
|
||||
|
||||
public string[] Filter {
|
||||
get {
|
||||
return filter.Split('|');
|
||||
}
|
||||
}
|
||||
|
||||
public FileStringAttribute(string ext) {
|
||||
filter = ext;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user