Ejemplo n.º 1
0
 public static bool smethod_1(WorldLocationStructure worldLocation0, WorldLocationStructure worldLocation1)
 {
     if (worldLocation0.bool_0 && worldLocation1.bool_0)
     {
         return(true);
     }
     if (worldLocation0.bool_0 || worldLocation1.bool_0)
     {
         return(false);
     }
     return(((worldLocation0.X == worldLocation1.X) && (worldLocation0.Y == worldLocation1.Y)) && (worldLocation0.Z == worldLocation1.Z));
 }
Ejemplo n.º 2
0
        public static bool smethod_4(string string_0, out WorldLocationStructure worldLocation0)
        {
            worldLocation0 = smethod_0();
            Match match = regex_0.Match(string_0);

            if (!match.Success)
            {
                return(false);
            }
            double num  = double.Parse(match.Groups["ewnum"].Value);
            double num2 = double.Parse(match.Groups["nsnum"].Value);

            if (match.Groups["ewchr"].Value.ToLowerInvariant() == "w")
            {
                num *= -1.0;
            }
            if (match.Groups["nschr"].Value.ToLowerInvariant() == "s")
            {
                num2 *= -1.0;
            }
            worldLocation0 = new WorldLocationStructure(num, num2, 0.0);
            return(true);
        }
Ejemplo n.º 3
0
 public static bool smethod_2(WorldLocationStructure worldLocation0, WorldLocationStructure worldLocation1)
 {
     return(!smethod_1(worldLocation0, worldLocation1));
 }