Example #1
0
        public void HandleSyncMobile(SyncMobile syncMobile)
        {
            if (IsPlayable)
            {
                return;
            }

            SyncMobile.Update(syncMobile);

            //Position
            if (LevelScene.MatchMetadata != null && LevelScene.CurrentTurnOwner.Owner.ID == Owner.ID && Movement.IsAbleToMove)
            {
                ((RemoteMovement)Movement).EnqueuePosition(Topography.GetTransformedPosition(new Vector2(syncMobile.Position[0], syncMobile.Position[1])).ToVector2());
            }

            //ShotType
            ChangeShot(SyncMobile.SelectedShotType);
        }