Player changes + projectile fixes
This commit is contained in:
@@ -104,7 +104,7 @@ func disconnect_from_server():
|
||||
## @param opcode: Message type identifier (see opcodes.gd)
|
||||
## @param data: Dictionary of message data to send
|
||||
func send_message(opcode: int, data: Dictionary = {}):
|
||||
print("[Network] Send Message Called to send opCode: ", opcode)
|
||||
#print("[Network] Send Message Called to send opCode: ", opcode)
|
||||
if not _is_connected:
|
||||
push_warning("[Network] Cannot send message - not connected")
|
||||
return
|
||||
@@ -188,7 +188,7 @@ func _handle_received_data(packet: PackedByteArray):
|
||||
|
||||
var message = json.data
|
||||
var opcode: int = message.get("opCode", message.get("OpCode", 0))
|
||||
print("[Network] OpCode Recieved: ", opcode)
|
||||
#print("[Network] OpCode Recieved: ", opcode)
|
||||
# Decode payload
|
||||
var payload_data = message.get("payload", message.get("Payload", null))
|
||||
var decoded_data = {}
|
||||
|
||||
Reference in New Issue
Block a user