class_name Player extends CharacterBody3D @export var data: PlayerData func _ready() -> void: %Head.texture = load( "%s/%s/000.png" % [ "res://client_data/data/sprite", Constants.FilePaths.get_player_head( Client.character.info.gender, Client.character.info.head ), ] ) %Head.visible = true %Body.texture = load( "%s/%s/000.png" % [ "res://client_data/data/sprite", Constants.FilePaths.get_player_body( Client.character.info.gender, Client.character.info.job ), ] ) func set_head(direction: Constants.Direction): %Head.texture = load( "%s/%s/000.png" % [ "res://client_data/data/sprite", Constants.FilePaths.get_player_head( Client.character.info.gender, Client.character.info.head ), ] )