Renamed a bunch of player stuff to pawn stuff and implemented extensive work on getting single-address 'netplay' code working. Not sure if I've created issues with single player but in theory it should all transfer across as if the player is simply always the host.
This commit is contained in:
17
scripts/pawn_level_data.gd
Normal file
17
scripts/pawn_level_data.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
class_name PawnLevelData extends Node
|
||||
|
||||
class TrapData:
|
||||
var type : Trap.Type
|
||||
var quantity : int
|
||||
var max : int
|
||||
|
||||
func _init(type : Trap.Type, quantity : int, max : int) -> void:
|
||||
self.type = type
|
||||
self.quantity = quantity
|
||||
self.max = max
|
||||
|
||||
var traps : Array[TrapData] = []
|
||||
var active_trap : int = 0
|
||||
|
||||
var life : int = 100
|
||||
var max_life : int = 100
|
||||
Reference in New Issue
Block a user