Beispiel #1
0
        public int CompareTo(object version)
        {
            if (version == null)
            {
                return(1);
            }
            if (!(version is ModuleVersion))
            {
                throw new ArgumentException("Arg_MustBeVersion");
            }
            ModuleVersion version1 = (ModuleVersion)version;

            if (this.major != version1.Major)
            {
                if (this.major > version1.Major)
                {
                    return(1);
                }
                return(-1);
            }
            if (this.minor != version1.Minor)
            {
                if (this.minor > version1.Minor)
                {
                    return(1);
                }
                return(-1);
            }
            return(0);
        }
Beispiel #2
0
 public myServerConfig(ModuleVersion curVers)
 {
     cfgVersion       = curVers;
     vehicle_types    = new DataSet();
     deployable_types = new DataSet();
     player_state     = new DataSet();
 }
Beispiel #3
0
        public object Clone()
        {
            ModuleVersion version1 = new ModuleVersion();

            version1.major = this.major;
            version1.minor = this.minor;
            return(version1);
        }
Beispiel #4
0
        public override bool Equals(object obj)
        {
            if ((obj == null) || !(obj is ModuleVersion))
            {
                return(false);
            }
            ModuleVersion version1 = (ModuleVersion)obj;

            if ((this.major == version1.Major) && (this.minor == version1.Minor))
            {
                return(true);
            }
            return(false);
        }
Beispiel #5
0
 public myCommonConfig(ModuleVersion curVers)
 {
     cfgVersion = curVers;
 }
Beispiel #6
0
 public myBitmapConfig(ModuleVersion curVers)
 {
     cfgVersion = curVers;
 }