-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#127 Making player data more... sort of strongly typed, kind of
Will hopefully help us as we add more data.
- Loading branch information
1 parent
8c4f89b
commit e41877f
Showing
13 changed files
with
116 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
extends Node | ||
|
||
var player_data_dictionary: Dictionary | ||
|
||
func _ready(): | ||
pass | ||
|
||
func load(new_player_data_dictionary: Dictionary): | ||
player_data_dictionary = new_player_data_dictionary | ||
|
||
func get_id() -> int: | ||
return player_data_dictionary.id | ||
|
||
func set_id(id: int): | ||
player_data_dictionary.id = id | ||
|
||
func get_name() -> String: | ||
return player_data_dictionary.name | ||
|
||
func set_name(name: String): | ||
player_data_dictionary.name = name | ||
|
||
func get_type() -> int: | ||
return player_data_dictionary.type | ||
|
||
func set_type(type: int): | ||
player_data_dictionary.type = type | ||
|
||
func get_is_host() -> bool: | ||
return player_data_dictionary.is_host | ||
|
||
func set_is_host(is_host: bool): | ||
player_data_dictionary.is_host = is_host |
Oops, something went wrong.