class_name Version ## Byte Type: u8 ## Byte Length: 1 var major: int ## Byte Type: u8 ## Byte Length: 1 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]