This repository has been archived by the owner on Nov 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch feature/level-cookies into main (#96)
* Cookie Management started * Implement level cookies - Implement cookie for solving level 1 - Implement cookie for solving level 2 - Implement cookie for solving level 3 - Implement cookie for solving level 4 - Implement usage of cookies in LevelOverview scene - Adapted element classes --------- Co-authored-by: Quadral1403 <[email protected]>
- Loading branch information
1 parent
1ef1dd6
commit c729d20
Showing
11 changed files
with
233 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
function addYears(date: Date, years: number): Date { | ||
const newDate = new Date(date); | ||
newDate.setFullYear(newDate.getFullYear() + years); | ||
return newDate; | ||
} | ||
|
||
function addMonths(date: Date, months: number): Date { | ||
const newDate = new Date(date); | ||
newDate.setMonth(newDate.getMonth() + months); | ||
return newDate; | ||
} | ||
|
||
function addDays(date: Date, days: number): Date { | ||
const newDate = new Date(date); | ||
newDate.setDate(newDate.getDate() + days); | ||
return newDate; | ||
} | ||
|
||
function addHours(date: Date, hours: number): Date { | ||
const newDate = new Date(date); | ||
newDate.setHours(newDate.getHours() + hours); | ||
return newDate; | ||
} | ||
|
||
function addMinutes(date: Date, minutes: number): Date { | ||
const newDate = new Date(date); | ||
newDate.setMinutes(newDate.getMinutes() + minutes); | ||
return newDate; | ||
} | ||
|
||
function addSeconds(date: Date, seconds: number): Date { | ||
const newDate = new Date(date); | ||
newDate.setSeconds(newDate.getSeconds() + seconds); | ||
return newDate; | ||
} | ||
|
||
function addMilliseconds(date: Date, milliseconds: number): Date { | ||
const newDate = new Date(date); | ||
newDate.setMilliseconds(newDate.getMilliseconds() + milliseconds); | ||
return newDate; | ||
} | ||
|
||
export { | ||
addYears, | ||
addMonths, | ||
addDays, | ||
addHours, | ||
addMinutes, | ||
addSeconds, | ||
addMilliseconds, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.