Compare commits

..

1 commit

Author SHA1 Message Date
Kevin Schmidt
a1334a1f46 Show Money, show hitpoints
All checks were successful
Quality Check / Linting (push) Successful in 6s
Quality Check / Linting (pull_request) Successful in 6s
2025-03-13 13:12:55 +01:00
3 changed files with 6 additions and 7 deletions

View file

@ -20,14 +20,13 @@ func _process(_delta: float) -> void:
. deserialize(
self.socket.get_packet().get_string_from_utf8(),
[
TowerPlacedMessage,
InvalidPlacementMessage,
PlayerMoneyMessage,
PlayerHitpointsMessage,
TowerPlacedMessage,
InvalidPlacementMessage,
PlayerMoneyMessage,
PlayerHitpointsMessage,
],
)
)
match msg.get_message_id():
TowerPlacedMessage.MESSAGE_ID:
on_match_update.emit(msg)

View file

@ -3,9 +3,9 @@ extends Message
const MESSAGE_ID: String = "PlayerHitpoints"
# gdlint:ignore = class-variable-name
@export var playerHitpoints: int
func get_message_id() -> String:
return MESSAGE_ID

View file

@ -3,9 +3,9 @@ extends Message
const MESSAGE_ID: String = "PlayerMoney"
# gdlint:ignore = class-variable-name
@export var playerMoney: int
func get_message_id() -> String:
return MESSAGE_ID