Refactor: Added explicit typing and void return types
- Introduced explicit typing to variables and functions across multiple scripts for better code clarity. - Specified 'void' as the return type for functions that do not return a value. - Removed redundant code in some scripts.
This commit is contained in:
parent
a62cd6018e
commit
2a9e78b52e
37 changed files with 216 additions and 248 deletions
|
|
@ -3,14 +3,14 @@ extends Node2D
|
|||
@export var parent_sprite : Sprite2D = null
|
||||
@export var drop_shadow_distance : int = 10
|
||||
|
||||
var drop_shadow_sprite = null
|
||||
var drop_shadow_sprite : Sprite2D = null
|
||||
|
||||
func _ready():
|
||||
func _ready() -> void:
|
||||
if parent_sprite is Sprite2D:
|
||||
drop_shadow()
|
||||
pass
|
||||
|
||||
func drop_shadow():
|
||||
func drop_shadow() -> void:
|
||||
drop_shadow_sprite = parent_sprite.duplicate()
|
||||
|
||||
drop_shadow_sprite.scale = Vector2(1.1, 1.1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue