From 35b0f811f23f029110373798b19d9d0895d907f0 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 5 Jan 2025 16:54:36 +0100 Subject: next commit --- extractor/version.gd | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'extractor/version.gd') diff --git a/extractor/version.gd b/extractor/version.gd index 679a8f0..ae97a10 100644 --- a/extractor/version.gd +++ b/extractor/version.gd @@ -11,5 +11,25 @@ var major: int var minor: int +func lower_than(compare_major: int, compare_minor: int) -> bool: + if (major > compare_major): + return false + + if (major == compare_major): + return minor < compare_minor + + return true + + +func higher_than(compare_major: int, compare_minor: int) -> bool: + if (major > compare_major): + return true + + if (major == compare_major): + return minor > compare_minor + + return false + + func _to_string() -> String: return "%s.%s" % [major, minor] -- cgit v1.2.3