Multiplayer - FailedIndustry/Industrial-Failure GitHub Wiki
Multiplayer
Multiplayer is comprised of one hierarchy:
multiplayer/Multiplayer.gd
Constants:
PORTwhere the game is hostedMAX_PLAYERSthat the game can holdCOMPRESSIONtype to use for packets from and to server
Enums:
GenericResultis the generic enum that we use to represent simplistic errors for our specific use case
Functions:
retry_functionretries the function passed to it a certain amount of times
multiplayer/Client.gd (extends multiplayer/Multiplayer.gd)
Functions:
join_serveris where the client joins the server with specified address
multiplayer/Server.gd (extends multiplayer/Multiplayer.gd)
Functions:
start_serveris where a server starts the server.