2024-02-17 16:31:03 +01:00
|
|
|
class_name ItemProcessor extends ItemContainer
|
|
|
|
|
|
|
|
|
|
|
|
@export_group("Processor config")
|
|
|
|
@export var duration : int = 0
|
|
|
|
@export var duration_type : DURATION_TYPE
|
2024-02-20 12:03:16 +01:00
|
|
|
@export var processor_type : PROCESSOR_TYPE
|
2024-02-17 16:31:03 +01:00
|
|
|
|
2024-02-20 12:03:16 +01:00
|
|
|
enum PROCESSOR_TYPE {Mixer, CuttingB}
|
2024-02-17 16:31:03 +01:00
|
|
|
enum DURATION_TYPE {Instant, AP, Turn}
|
2024-02-20 12:03:16 +01:00
|
|
|
|
|
|
|
|
|
|
|
func process_item() :
|
|
|
|
var item = items.pop_front()
|
|
|
|
if processor_type == PROCESSOR_TYPE.Mixer :
|
|
|
|
if duration_type == DURATION_TYPE.Turn :
|
|
|
|
pass
|
|
|
|
elif duration_type == DURATION_TYPE.AP :
|
|
|
|
pass
|
|
|
|
else :
|
|
|
|
pass
|
|
|
|
elif processor_type == PROCESSOR_TYPE.CuttingB :
|
|
|
|
pass
|
|
|
|
else :
|
|
|
|
push_error("Pas De Processor Type")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|