コード例 #1
0
 public static void SetCustomDimension02(string dimension)
 {
     GAThreading.PerformTaskOnGAThread("setCustomDimension02", () =>
     {
         if (!GAValidator.ValidateDimension02(dimension))
         {
             GALogger.W("Could not set custom02 dimension value to '" + dimension + "'. Value not found in available custom02 dimension values");
             return;
         }
         GAState.SetCustomDimension02(dimension);
     });
 }
コード例 #2
0
ファイル: GAState.cs プロジェクト: yweber/Barotrauma
 private static void ValidateAndFixCurrentDimensions()
 {
     // validate that there are no current dimension01 not in list
     if (!GAValidator.ValidateDimension01(CurrentCustomDimension01))
     {
         GALogger.D("Invalid dimension01 found in variable. Setting to nil. Invalid dimension: " + CurrentCustomDimension01);
         SetCustomDimension01("");
     }
     // validate that there are no current dimension02 not in list
     if (!GAValidator.ValidateDimension02(CurrentCustomDimension02))
     {
         GALogger.D("Invalid dimension02 found in variable. Setting to nil. Invalid dimension: " + CurrentCustomDimension02);
         SetCustomDimension02("");
     }
     // validate that there are no current dimension03 not in list
     if (!GAValidator.ValidateDimension03(CurrentCustomDimension03))
     {
         GALogger.D("Invalid dimension03 found in variable. Setting to nil. Invalid dimension: " + CurrentCustomDimension03);
         SetCustomDimension03("");
     }
 }