Skip to content

Handle first sync event ( sync world ) #68

Open

Description

@Unsigno

For convenience reasons ( eg. initialize visual scene/world ) should be usefull a firstSyncReceived/worldSync or something similar , maybe with pre/post addition .

I can execute once 'client__syncReceived' , but a interesting thing can be add diferent params as syncReceived .

Eg.

beforeWorldSync( theFirstSyncData )
onWorldSync( the objectInstancesCreated ) // this implies divide onAddToWorld ( to onCreateRenderEl onAddToWorld )
afterWorldSync() // the instances are added to the world now

Activity

  1. OpherV commented on Jan 22, 2018

    @OpherV
    Member

    You're correct in that practically in all cases the game engine has "nothing to do" before the first full sync.
    but maybe instead of adding to the API we can just make sure that the 'start' for the client game engine only happens after it receives the first full sync.

    Thoughts?

  2. Unsigno commented on Jan 26, 2018

    @Unsigno
    ContributorAuthor

    Was the original purpose, but as you mention some one should be interested on run some "local scene", maybe loading another assets or waiting for connection . So could be diferent things , handle first sync and allow run step before or when first sync .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions