29 lines
929 B
GDScript
29 lines
929 B
GDScript
class_name DEPR_ModifierProperties
|
|
extends Reference
|
|
|
|
var modifier_type: int = 0
|
|
#var timeout_seconds: float = 0.0
|
|
|
|
var move_speed: float = 0.0
|
|
var move_acceleration: float = 0.0
|
|
var move_speed_modifier: float = 0.0
|
|
var move_modifier_move_acceleration: float = 0.0
|
|
var jerk_factor: float = 0
|
|
|
|
var gravity:int = 0
|
|
|
|
# Bad name. Just means that it is intended to apply in a certain direction
|
|
# (Positive or negative) not an offset of the existing values.
|
|
var directional_modifier: bool = false
|
|
|
|
|
|
func _init( p_move_speed:float, p_gravity:int , p_move_acceleration , p_move_speed_modifier:float,
|
|
p_move_modifier_move_acceleration:float, p_jerk_factor: float):
|
|
#timeout_seconds = p_timeout_seconds
|
|
move_speed = p_move_speed
|
|
move_acceleration = p_move_acceleration
|
|
gravity = p_gravity
|
|
move_speed_modifier = p_move_speed_modifier
|
|
move_modifier_move_acceleration = p_move_modifier_move_acceleration
|
|
jerk_factor = p_jerk_factor
|