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); }
public myServerConfig(ModuleVersion curVers) { cfgVersion = curVers; vehicle_types = new DataSet(); deployable_types = new DataSet(); player_state = new DataSet(); }
public object Clone() { ModuleVersion version1 = new ModuleVersion(); version1.major = this.major; version1.minor = this.minor; return(version1); }
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); }
public myCommonConfig(ModuleVersion curVers) { cfgVersion = curVers; }
public myBitmapConfig(ModuleVersion curVers) { cfgVersion = curVers; }