Asmodee.net Unity SDK
5.2.0
Getting Started
Downloads
Changelogs
Migration
Roadmap
Developer Guides
FAQ
Legacy
Old Builds (unsupported)
Sample
ServerConnection
Asmodee.net Unity SDK
Docs
»
Legacy
View page source
Legacy
ΒΆ
Old Builds (unsupported)
v5.1.0
v5.0.0
v4.2.0
v4.1.0
v4.0.0
v3.0.1
v3.0.0
v2.0.1
v2.0.0
v1.3.2
v1.3.1
v1.3.0
v1.2.5
v1.2.4
v1.2.3
v1.2.2
v1.2.1
v1.2
v1.1
Sample
Overview
View
Logic
Domain (game)
Domain (Scalable Server)
Diagram
Starting the sample
Setup
Running the sample
Sample build Settings
Account creation
MainMenuView
Initialization
Authentication
Connection to the Scalable Server
ServerConnection
Send request
Reception event
User authentication on the Scalable Server
ServerConnection
Send request
Reception event
User logoff
ServerConnection
Send request
Reception event
LobbyPlayersView
Initialization
Access to the lobby
Entering the lobby
ServerConnection
Send request
Reception event
Exiting the lobby
ServerConnection
Send request
Reception event
Chat
Send a chat message in the lobby
ServerConnection
Send request
Receive a message
ServerConnection
Reception event
Receiving a chat blocked message
ServerConnection
Reception event
Request / receive chat history in the lobby
ServerConnection
Send request
Reception event
Players lists
Get the list of online players
ServerConnection
Reception event
Receive the buddy list
ServerConnection
Reception event
Get the list of ignored players
ServerConnection
Reception event
Add a player to the buddy list
ServerConnection
Send request
Reception event
Remove a player from buddy list
ServerConnection
Send request
Reception event
Add a player to the ignored list
ServerConnection
Send request
Reception event
Remove a player from the ignore list
ServerConnection
Send request
Reception event
LobbyGameView
Initialization
Creating a game
Creating a solo / pass and play game
Creating an open online game
ServerConnection
Send request
Reception event
Inviting friends to join a game
ServerConnection
Send request
Reception event
Invitation
Receiving an invitation
ServerConnection
Reception event
Accepting an invitation
ServerConnection
Send request
Declining an invitation
ServerConnection
Send request
Receiving the answer of friend to an invitation
ServerConnection
Reception event
Joining a game
Viewing the list of open games
ServerConnection
Reception event
Viewing the list of ongoing games
ServerConnection
Send request
Reception event
Joining an open game
ServerConnection
Send request
Exiting a game
ServerConnection
Send request
A player joined the open game
ServerConnection
Reception event
A player leaves the open game
ServerConnection
Reception event
Resuming a game
ServerConnection
Send request
The player is not allowed to join the game
ServerConnection
Reception event
GameView
Initialization
Architecture
Communications with Scalable Server
Event sourcing
Example
Creating your own events and messages
Sending an action
ServerConnection
Send request
Reception event
Next player
Local player
ServerConnection
Reception event
Distant player
ServerConnection
Reception event
Artificial intelligence
Solo game
Online game
ServerConnection
Reception event
GameEngine
Example
Messages
Sending a message
ServerConnection
Send request
Receiving a message
ServerConnection
Reception event
Exiting the game
Forfeit
ServerConnection
Send request
Reception event
Leave a game temporarily
ServerConnection
Send request
Chat in game
Sending a chat from a game
ServerConnection
Send request
Savegame
Saving a game
Loading a game
ServerConnection
Integration
Use