1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-11-23 14:45:37 +01:00
GiantsTools/Giants.BinTools/Macro/KnownSymbolGroupNames.cs

30 lines
827 B
C#
Raw Normal View History

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;
}
}
}