예제 #1
0
            public InternalEntry(int body, int itemID, string name)
            {
                Body   = body;
                ItemID = itemID;
                Name   = name;

                DisplayName = name.ToLower();

                for (var i = 0; i < m_GroupNames.Length; ++i)
                {
                    if (DisplayName.StartsWithOrdinal(m_GroupNames[i]))
                    {
                        DisplayName = DisplayName[m_GroupNames[i].Length..];
예제 #2
0
            public InternalEntry(int body, int itemID, string name)
            {
                Body   = body;
                ItemID = itemID;
                Name   = name;

                DisplayName = name.ToLower();

                for (var i = 0; i < m_GroupNames.Length; ++i)
                {
                    if (DisplayName.StartsWithOrdinal(m_GroupNames[i]))
                    {
                        DisplayName = DisplayName.Substring(m_GroupNames[i].Length);
                        break;
                    }
                }

                DisplayName = DisplayName.Replace('_', ' ');
            }