22 lines
390 B
GDScript3
22 lines
390 B
GDScript3
|
|
extends Node
|
||
|
|
|
||
|
|
func create_enet_server(port: int) -> void:
|
||
|
|
# use timer to send udp broadcast packets to notify other LAN clients
|
||
|
|
pass
|
||
|
|
|
||
|
|
func connect_with_webrtc() -> void:
|
||
|
|
pass
|
||
|
|
|
||
|
|
func connect_with_enet() -> void:
|
||
|
|
pass
|
||
|
|
|
||
|
|
func lan_mode() -> void:
|
||
|
|
pass
|
||
|
|
|
||
|
|
func online_mode() -> void:
|
||
|
|
pass
|
||
|
|
|
||
|
|
func offline_mode() -> void:
|
||
|
|
multiplayer.multiplayer_peer = OfflineMultiplayerPeer.new()
|
||
|
|
pass
|