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,23 @@
|
||||
class_name DiveAlertState
|
||||
extends RefCounted
|
||||
|
||||
const DiveAlertLevel = preload("res://game/domain/dive/dive_alert_level.gd")
|
||||
|
||||
var oxygen: DiveAlertLevel.Value
|
||||
var battery: DiveAlertLevel.Value
|
||||
var hull: DiveAlertLevel.Value
|
||||
var depth: DiveAlertLevel.Value
|
||||
var maximum: DiveAlertLevel.Value
|
||||
|
||||
|
||||
func _init(
|
||||
p_oxygen: DiveAlertLevel.Value,
|
||||
p_battery: DiveAlertLevel.Value,
|
||||
p_hull: DiveAlertLevel.Value,
|
||||
p_depth: DiveAlertLevel.Value
|
||||
) -> void:
|
||||
oxygen = p_oxygen
|
||||
battery = p_battery
|
||||
hull = p_hull
|
||||
depth = p_depth
|
||||
maximum = DiveAlertLevel.highest([oxygen, battery, hull, depth])
|
||||
Reference in new issue
Block a user