Implement production vertical slice foundation
This commit is contained in:
1 parent
9d4a89f355
commit
a18e82eb44
104 files changed
+10595
-268
No files matched your search
@@ -0,0 +1,18 @@
|
||||
class_name DiveAlertLevel
|
||||
extends RefCounted
|
||||
|
||||
enum Value {
|
||||
NORMAL,
|
||||
ATTENTION,
|
||||
RETURN,
|
||||
CRITICAL,
|
||||
FAILURE,
|
||||
}
|
||||
|
||||
|
||||
static func highest(levels: Array[Value]) -> Value:
|
||||
var result := Value.NORMAL
|
||||
for level: Value in levels:
|
||||
if level > result:
|
||||
result = level
|
||||
return result
|
||||
Reference in new issue
Block a user