WorldClock/Scripts/GlobalTime.cs
/// <summary>
/// Returns true if this GlobalTime matches the passed GlobalTime
/// </summary>
/// <param name="toMatch">The GlobalTime to check</param>
/// <returns>Returns true if this GlobalTime matches the passed GlobalTime, false otherwise</returns>
Returns true if this GlobalTime matches the passed GlobalTime
Returns true if this GlobalTime matches the passed GlobalTime
public bool IsMatch(GlobalTime toMatch)
    {
        bool matches = true;
        if (toMatch.minutesInAnHour != minutesInAnHour) { matches = false; }
        if (toMatch.hoursInADay != hoursInADay) { matches = false; }
        if (toMatch.daysInAMonth != daysInAMonth) { matches = false; }
        if (toMatch.monthsInAYear != monthsInAYear) { matches = false; }
        if (toMatch.WorldClockMinutesPerTick != WorldClockMinutesPerTick) { matches = false; }
        return matches;
    }
public bool IsMatch ( GlobalTime toMatch ) { bool matches = true ; if ( toMatch . minutesInAnHour != minutesInAnHour ) { matches = false ; } if ( toMatch . hoursInADay != hoursInADay ) { matches = false ; } if ( toMatch . daysInAMonth != daysInAMonth ) { matches = false ; } if ( toMatch . monthsInAYear != monthsInAYear ) { matches = false ; } if ( toMatch . WorldClockMinutesPerTick != WorldClockMinutesPerTick ) { matches = false ; } return matches ; }
Returns true if this GlobalTime matches the passed GlobalTime
Returns true if this GlobalTime matches the passed GlobalTime
Returns true if this GlobalTime matches the passed GlobalTime, false otherwise
Returns true if this GlobalTime matches the passed GlobalTime false otherwise
toMatch
GlobalTime
The GlobalTime to check
The GlobalTime to check