public override char ValidateInput(string input, int charIndex, char addedChar)
 {
     if (input.Length >= 13)
     {
         if (!ArcenStrings.Equals(input, DefaultText))
         {
             return('\0');
         }
     }
     if (addedChar == '\t')
     {
         //ArcenDebugging.ArcenDebugLogSingleLine( "Got a tab", Verbosity.DoNotShow );
     }
     if (addedChar == '\r' || addedChar == '\n')
     {
         //ArcenDebugging.ArcenDebugLogSingleLine( "Got a return", Verbosity.DoNotShow );
     }
     if (!Char.IsLetterOrDigit(addedChar))     //must be alphanumeric
     {
         if (addedChar == autoCompleteChar)
         {
             attemptAutoCompletion();
         }
         return('\0');
     }
     if (ArcenStrings.Equals(input, DefaultText))
     {
         this.PlanetName = string.Empty + addedChar;
         return('\0');
     }
     return(addedChar);
 }
 public override bool GetCanBeHacked(GameEntity Target, GameEntity Hacker)
 {
     if (ArcenStrings.ListContains(Target.TypeData.Tags, "NanobotHive"))
     {
         return(true);
     }
     return(false);
 }
Esempio n. 3
0
 public bool GetShouldInitializeOn(string ParentTypeName)
 {
     // Figure out which object type has this sort of ExternalData (in this case, Faction)
     return(ArcenStrings.Equals(ParentTypeName, RelatedParentTypeName));
 }
 public bool GetShouldInitializeOn(string ParentTypeName)
 {
     return(ArcenStrings.Equals(ParentTypeName, RelatedParentTypeName));
 }