Economics definition
This commit is contained in:
parent
6bfd3a3f0f
commit
8723c4e6df
5 changed files with 30 additions and 0 deletions
17
systems/player_economics.gd
Normal file
17
systems/player_economics.gd
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
extends Node
|
||||
|
||||
var player_mana: int:
|
||||
set(value):
|
||||
player_mana = value
|
||||
player_mana_changed.emit(value)
|
||||
get:
|
||||
return player_mana
|
||||
var player_mana_restore: int = 3:
|
||||
set(value):
|
||||
player_mana_restore = value
|
||||
player_mana_restore_changed.emit(value)
|
||||
get:
|
||||
return player_mana_restore
|
||||
|
||||
signal player_mana_changed(to: int)
|
||||
signal player_mana_restore_changed(to: int)
|
||||
Loading…
Add table
Add a link
Reference in a new issue