Search in sources :

Example 1 with ConnectedEvent

use of org.terasology.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.persistence.PlayerStore) ConnectedEvent(org.terasology.network.events.ConnectedEvent)

Aggregations

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