Search in sources :

Example 1 with ConnectedEvent

use of org.terasology.engine.network.events.ConnectedEvent in project Terasology by MovingBlocks.

the class NetworkSystemImpl method connectClient.

private void connectClient(Client client) {
    PlayerStore entityStore = storageManager.loadPlayerStore(client.getId());
    client.getEntity().send(new ConnectedEvent(entityStore));
}
Also used : PlayerStore(org.terasology.engine.persistence.PlayerStore) ConnectedEvent(org.terasology.engine.network.events.ConnectedEvent)

Aggregations

ConnectedEvent (org.terasology.engine.network.events.ConnectedEvent)1 PlayerStore (org.terasology.engine.persistence.PlayerStore)1