1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-12-05 02:53:08 +01:00
GiantsTools/Giants.BinTools/Macro/KnownSymbolGroupNames.cs
2020-09-05 22:22:23 -07:00

30 lines
827 B
C#

namespace Giants.BinTools.Macro
{
using System;
using System.Collections.Generic;
public static class KnownSymbolGroupNames
{
public const string Sfx = "sfx";
public const string Fx = "Fx";
public const string Object = "ObjObj";
public const string ObjectData = "ObjData";
public const string ObjectGroup = "ObjGroup";
public static readonly IList<string> Names = new[] { Sfx, Fx, Object, ObjectData, ObjectGroup };
public static string GetGroupName(string str)
{
foreach (string groupName in Names)
{
if (str.StartsWith(groupName, StringComparison.OrdinalIgnoreCase))
{
return groupName;
}
}
return null;
}
}
}