예제 #1
0
 public CheatCommandName(string InName)
 {
     DebugHelper.Assert(!string.IsNullOrEmpty(InName));
     this.rawName = InName;
     char[]   separator     = new char[] { '/' };
     string[] inStringArray = InName.Split(separator);
     if ((inStringArray != null) && (inStringArray.Length > 1))
     {
         this.baseName         = inStringArray[inStringArray.Length - 1];
         this.groupName        = inStringArray[inStringArray.Length - 2];
         this.groupHierarchies = LinqS.Take(inStringArray, inStringArray.Length - 1);
     }
     else
     {
         this.baseName         = InName;
         this.groupName        = "通用";
         this.groupHierarchies = new string[] { this.groupName };
     }
 }
예제 #2
0
        public CheatCommandName(string InName)
        {
            DebugHelper.Assert(!string.IsNullOrEmpty(InName));

            rawName = InName;

            string[] SplitedResults = InName.Split('/');

            if (SplitedResults != null && SplitedResults.Length > 1)
            {
                baseName         = SplitedResults[SplitedResults.Length - 1];
                groupName        = SplitedResults[SplitedResults.Length - 2];
                groupHierarchies = LinqS.Take(SplitedResults, SplitedResults.Length - 1);
            }
            else
            {
                baseName         = InName;
                groupName        = @"Gernal";
                groupHierarchies = new string[] { groupName };
            }
        }
예제 #3
0
 public CheatCommandName(string InName)
 {
     DebugHelper.Assert(!string.IsNullOrEmpty(InName));
     this.rawName = InName;
     string[] array = InName.Split(new char[]
     {
         '/'
     });
     if (array != null && array.Length > 1)
     {
         this.baseName         = array[array.Length - 1];
         this.groupName        = array[array.Length - 2];
         this.groupHierarchies = LinqS.Take(array, array.Length - 1);
     }
     else
     {
         this.baseName         = InName;
         this.groupName        = "通用";
         this.groupHierarchies = new string[]
         {
             this.groupName
         };
     }
 }