mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-11-17 03:55:37 +01:00
30 lines
827 B
C#
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|