public void PredictDelta(uint tick, ref PlayerStateSnapshotData baseline1, ref PlayerStateSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        PlayerStateplayerId = predictor.PredictInt(PlayerStateplayerId, baseline1.PlayerStateplayerId, baseline2.PlayerStateplayerId);
        PlayerStategameModeSystemInitialized = (uint)predictor.PredictInt((int)PlayerStategameModeSystemInitialized, (int)baseline1.PlayerStategameModeSystemInitialized, (int)baseline2.PlayerStategameModeSystemInitialized);
    }
Example #2
0
    public void PredictDelta(uint tick, ref RepPlayerSnapshotData baseline1, ref RepPlayerSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        TranslationValueX = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
    }
Example #3
0
 public void PredictDelta(uint tick, ref GhostSnapshotData baseline1, ref GhostSnapshotData baseline2)
 {
     var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);
     #region __GHOST_PREDICT__
     snapshot.__GHOST_FIELD_NAME__X = predictor.PredictInt(snapshot.__GHOST_FIELD_NAME__X, baseline1.__GHOST_FIELD_NAME__X, baseline2.__GHOST_FIELD_NAME__X);
     snapshot.__GHOST_FIELD_NAME__Y = predictor.PredictInt(snapshot.__GHOST_FIELD_NAME__Y, baseline1.__GHOST_FIELD_NAME__Y, baseline2.__GHOST_FIELD_NAME__Y);
     #endregion
 }
    public void PredictDelta(uint tick, ref GameModeSnapshotData baseline1, ref GameModeSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        GameModeDatagameTimerSeconds = predictor.PredictInt(GameModeDatagameTimerSeconds, baseline1.GameModeDatagameTimerSeconds, baseline2.GameModeDatagameTimerSeconds);
        GameModeDatateamScore0       = predictor.PredictInt(GameModeDatateamScore0, baseline1.GameModeDatateamScore0, baseline2.GameModeDatateamScore0);
        GameModeDatateamScore1       = predictor.PredictInt(GameModeDatateamScore1, baseline1.GameModeDatateamScore1, baseline2.GameModeDatateamScore1);
    }
Example #5
0
    public void PredictDelta(uint tick, ref GameInfoSnapshotData baseline1, ref GameInfoSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        GameInfoComponentSizeX = predictor.PredictInt(GameInfoComponentSizeX, baseline1.GameInfoComponentSizeX, baseline2.GameInfoComponentSizeX);
        GameInfoComponentSizeY = predictor.PredictInt(GameInfoComponentSizeY, baseline1.GameInfoComponentSizeY, baseline2.GameInfoComponentSizeY);
        GameInfoComponentId    = predictor.PredictInt(GameInfoComponentId, baseline1.GameInfoComponentId, baseline2.GameInfoComponentId);
    }
Example #6
0
    public void PredictDelta(uint tick, ref AsteroidSnapshotData baseline1, ref AsteroidSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        RotationValue     = predictor.PredictInt(RotationValue, baseline1.RotationValue, baseline2.RotationValue);
        TranslationValueX = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
    }
Example #7
0
    public void PredictDelta(uint tick, ref ShipSnapshotData baseline1, ref ShipSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick,
                                                baseline2.tick);

        posX = predictor.PredictInt(posX, baseline1.posX, baseline2.posX);
        posY = predictor.PredictInt(posY, baseline1.posY, baseline2.posY);
        rot  = predictor.PredictInt(rot, baseline1.rot, baseline2.rot);
    }
    public void PredictDelta(uint tick, ref BulletSnapshotData baseline1, ref BulletSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        PlayerIdComponentDataPlayerId = predictor.PredictInt(PlayerIdComponentDataPlayerId, baseline1.PlayerIdComponentDataPlayerId, baseline2.PlayerIdComponentDataPlayerId);
        RotationValue     = predictor.PredictInt(RotationValue, baseline1.RotationValue, baseline2.RotationValue);
        TranslationValueX = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
    }
        public void PredictDelta(uint tick, ref GhostSnapshotData baseline1, ref GhostSnapshotData baseline2)
        {
            var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

            #region __GHOST_PREDICT__
            snapshot.__GHOST_FIELD_NAME__          = predictor.PredictInt(snapshot.__GHOST_FIELD_NAME__, baseline1.__GHOST_FIELD_NAME__, baseline2.__GHOST_FIELD_NAME__);
            snapshot.__GHOST_FIELD_NAME__SpawnTick = (uint)predictor.PredictInt((int)snapshot.__GHOST_FIELD_NAME__SpawnTick, (int)baseline1.__GHOST_FIELD_NAME__SpawnTick, (int)baseline2.__GHOST_FIELD_NAME__);
            #endregion
        }
Example #10
0
    public void PredictDelta(uint tick, ref CubeSnapshotData baseline1, ref CubeSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        MovableCharacterComponentPlayerId = predictor.PredictInt(MovableCharacterComponentPlayerId, baseline1.MovableCharacterComponentPlayerId, baseline2.MovableCharacterComponentPlayerId);
        PlayerDatahealth  = predictor.PredictInt(PlayerDatahealth, baseline1.PlayerDatahealth, baseline2.PlayerDatahealth);
        TranslationValueX = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
    }
    public void PredictDelta(uint tick, ref TeleporterSnapshotData baseline1, ref TeleporterSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        TeleporterPresentationDataeffectTick = predictor.PredictInt(TeleporterPresentationDataeffectTick, baseline1.TeleporterPresentationDataeffectTick, baseline2.TeleporterPresentationDataeffectTick);
        TranslationValueX       = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY       = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ       = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
        Child0TranslationValueX = predictor.PredictInt(Child0TranslationValueX, baseline1.Child0TranslationValueX, baseline2.Child0TranslationValueX);
        Child0TranslationValueY = predictor.PredictInt(Child0TranslationValueY, baseline1.Child0TranslationValueY, baseline2.Child0TranslationValueY);
        Child0TranslationValueZ = predictor.PredictInt(Child0TranslationValueZ, baseline1.Child0TranslationValueZ, baseline2.Child0TranslationValueZ);
        Child1TranslationValueX = predictor.PredictInt(Child1TranslationValueX, baseline1.Child1TranslationValueX, baseline2.Child1TranslationValueX);
        Child1TranslationValueY = predictor.PredictInt(Child1TranslationValueY, baseline1.Child1TranslationValueY, baseline2.Child1TranslationValueY);
        Child1TranslationValueZ = predictor.PredictInt(Child1TranslationValueZ, baseline1.Child1TranslationValueZ, baseline2.Child1TranslationValueZ);
    }
Example #12
0
    public void PredictDelta(uint tick, ref ProjectileSnapshotData baseline1, ref ProjectileSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        LifeTimeComponentValue = predictor.PredictInt(LifeTimeComponentValue, baseline1.LifeTimeComponentValue, baseline2.LifeTimeComponentValue);
        SpeedComponentValue    = predictor.PredictInt(SpeedComponentValue, baseline1.SpeedComponentValue, baseline2.SpeedComponentValue);
        RotationValueX         = predictor.PredictInt(RotationValueX, baseline1.RotationValueX, baseline2.RotationValueX);
        RotationValueY         = predictor.PredictInt(RotationValueY, baseline1.RotationValueY, baseline2.RotationValueY);
        RotationValueZ         = predictor.PredictInt(RotationValueZ, baseline1.RotationValueZ, baseline2.RotationValueZ);
        RotationValueW         = predictor.PredictInt(RotationValueW, baseline1.RotationValueW, baseline2.RotationValueW);
        TranslationValueX      = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY      = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ      = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
    }
    public void PredictDelta(uint tick, ref VoxelGridSnapshotData baseline1, ref VoxelGridSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        ChunkComponentx   = predictor.PredictInt(ChunkComponentx, baseline1.ChunkComponentx, baseline2.ChunkComponentx);
        ChunkComponenty   = predictor.PredictInt(ChunkComponenty, baseline1.ChunkComponenty, baseline2.ChunkComponenty);
        RotationValueX    = predictor.PredictInt(RotationValueX, baseline1.RotationValueX, baseline2.RotationValueX);
        RotationValueY    = predictor.PredictInt(RotationValueY, baseline1.RotationValueY, baseline2.RotationValueY);
        RotationValueZ    = predictor.PredictInt(RotationValueZ, baseline1.RotationValueZ, baseline2.RotationValueZ);
        RotationValueW    = predictor.PredictInt(RotationValueW, baseline1.RotationValueW, baseline2.RotationValueW);
        TranslationValueX = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
    }
Example #14
0
    public void PredictDelta(uint tick, ref LagCompensationTestPlayerSnapshotData baseline1, ref LagCompensationTestPlayerSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        LagCompensationTestPlayerOwner = predictor.PredictInt(LagCompensationTestPlayerOwner, baseline1.LagCompensationTestPlayerOwner, baseline2.LagCompensationTestPlayerOwner);
        RotationValueX    = predictor.PredictInt(RotationValueX, baseline1.RotationValueX, baseline2.RotationValueX);
        RotationValueY    = predictor.PredictInt(RotationValueY, baseline1.RotationValueY, baseline2.RotationValueY);
        RotationValueZ    = predictor.PredictInt(RotationValueZ, baseline1.RotationValueZ, baseline2.RotationValueZ);
        RotationValueW    = predictor.PredictInt(RotationValueW, baseline1.RotationValueW, baseline2.RotationValueW);
        TranslationValueX = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
    }
Example #15
0
    public void PredictDelta(uint tick, ref GhostTypeIndex1TestSnapshotData baseline1, ref GhostTypeIndex1TestSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        GhostTypeIndexValue = predictor.PredictInt(GhostTypeIndexValue, baseline1.GhostTypeIndexValue, baseline2.GhostTypeIndexValue);
        RotationValueX      = predictor.PredictInt(RotationValueX, baseline1.RotationValueX, baseline2.RotationValueX);
        RotationValueY      = predictor.PredictInt(RotationValueY, baseline1.RotationValueY, baseline2.RotationValueY);
        RotationValueZ      = predictor.PredictInt(RotationValueZ, baseline1.RotationValueZ, baseline2.RotationValueZ);
        RotationValueW      = predictor.PredictInt(RotationValueW, baseline1.RotationValueW, baseline2.RotationValueW);
        TranslationValueX   = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY   = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ   = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
    }
Example #16
0
    public void PredictDelta(uint tick, ref ItemSnapshotData baseline1, ref ItemSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        PrefabCreatorNameId = (uint)predictor.PredictInt((int)PrefabCreatorNameId, (int)baseline1.PrefabCreatorNameId, (int)baseline2.PrefabCreatorNameId);
        RotationValueX      = predictor.PredictInt(RotationValueX, baseline1.RotationValueX, baseline2.RotationValueX);
        RotationValueY      = predictor.PredictInt(RotationValueY, baseline1.RotationValueY, baseline2.RotationValueY);
        RotationValueZ      = predictor.PredictInt(RotationValueZ, baseline1.RotationValueZ, baseline2.RotationValueZ);
        RotationValueW      = predictor.PredictInt(RotationValueW, baseline1.RotationValueW, baseline2.RotationValueW);
        TranslationValueX   = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY   = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ   = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
    }
Example #17
0
    public void PredictDelta(uint tick, ref SphereSnapshotData baseline1, ref SphereSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        MovablePlayerComponentPlayerId = predictor.PredictInt(MovablePlayerComponentPlayerId, baseline1.MovablePlayerComponentPlayerId, baseline2.MovablePlayerComponentPlayerId);
        RotationValueX    = predictor.PredictInt(RotationValueX, baseline1.RotationValueX, baseline2.RotationValueX);
        RotationValueY    = predictor.PredictInt(RotationValueY, baseline1.RotationValueY, baseline2.RotationValueY);
        RotationValueZ    = predictor.PredictInt(RotationValueZ, baseline1.RotationValueZ, baseline2.RotationValueZ);
        RotationValueW    = predictor.PredictInt(RotationValueW, baseline1.RotationValueW, baseline2.RotationValueW);
        TranslationValueX = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
    }
    public void PredictDelta(uint tick, ref PaddleOtherSideSnapshotData baseline1, ref PaddleOtherSideSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        PaddleMoveableComponentPlayerId = predictor.PredictInt(PaddleMoveableComponentPlayerId, baseline1.PaddleMoveableComponentPlayerId, baseline2.PaddleMoveableComponentPlayerId);
        RotationValueX    = predictor.PredictInt(RotationValueX, baseline1.RotationValueX, baseline2.RotationValueX);
        RotationValueY    = predictor.PredictInt(RotationValueY, baseline1.RotationValueY, baseline2.RotationValueY);
        RotationValueZ    = predictor.PredictInt(RotationValueZ, baseline1.RotationValueZ, baseline2.RotationValueZ);
        RotationValueW    = predictor.PredictInt(RotationValueW, baseline1.RotationValueW, baseline2.RotationValueW);
        TranslationValueX = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
    }
Example #19
0
    public void PredictDelta(uint tick, ref ProjectileSnapshotData baseline1, ref ProjectileSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        ActiveComponentIsActive = (uint)predictor.PredictInt((int)ActiveComponentIsActive, (int)baseline1.ActiveComponentIsActive, (int)baseline2.ActiveComponentIsActive);
        RotationValueX          = predictor.PredictInt(RotationValueX, baseline1.RotationValueX, baseline2.RotationValueX);
        RotationValueY          = predictor.PredictInt(RotationValueY, baseline1.RotationValueY, baseline2.RotationValueY);
        RotationValueZ          = predictor.PredictInt(RotationValueZ, baseline1.RotationValueZ, baseline2.RotationValueZ);
        RotationValueW          = predictor.PredictInt(RotationValueW, baseline1.RotationValueW, baseline2.RotationValueW);
        TranslationValueX       = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY       = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ       = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
    }
Example #20
0
    public void PredictDelta(uint tick, ref RepCubeSnapshotData baseline1, ref RepCubeSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        RepCubeComponentDatanetworkId = predictor.PredictInt(RepCubeComponentDatanetworkId, baseline1.RepCubeComponentDatanetworkId, baseline2.RepCubeComponentDatanetworkId);
        RepCubeComponentDatapositionX = predictor.PredictInt(RepCubeComponentDatapositionX, baseline1.RepCubeComponentDatapositionX, baseline2.RepCubeComponentDatapositionX);
        RepCubeComponentDatapositionY = predictor.PredictInt(RepCubeComponentDatapositionY, baseline1.RepCubeComponentDatapositionY, baseline2.RepCubeComponentDatapositionY);
        RepCubeComponentDatapositionZ = predictor.PredictInt(RepCubeComponentDatapositionZ, baseline1.RepCubeComponentDatapositionZ, baseline2.RepCubeComponentDatapositionZ);
        RepCubeComponentDatacolorX    = predictor.PredictInt(RepCubeComponentDatacolorX, baseline1.RepCubeComponentDatacolorX, baseline2.RepCubeComponentDatacolorX);
        RepCubeComponentDatacolorY    = predictor.PredictInt(RepCubeComponentDatacolorY, baseline1.RepCubeComponentDatacolorY, baseline2.RepCubeComponentDatacolorY);
        RepCubeComponentDatacolorZ    = predictor.PredictInt(RepCubeComponentDatacolorZ, baseline1.RepCubeComponentDatacolorZ, baseline2.RepCubeComponentDatacolorZ);
    }
    public void PredictDelta(uint tick, ref ExtraBlockSnapshotData baseline1, ref ExtraBlockSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        RotationValueX    = predictor.PredictInt(RotationValueX, baseline1.RotationValueX, baseline2.RotationValueX);
        RotationValueY    = predictor.PredictInt(RotationValueY, baseline1.RotationValueY, baseline2.RotationValueY);
        RotationValueZ    = predictor.PredictInt(RotationValueZ, baseline1.RotationValueZ, baseline2.RotationValueZ);
        RotationValueW    = predictor.PredictInt(RotationValueW, baseline1.RotationValueW, baseline2.RotationValueW);
        TranslationValueX = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
    }
    public void PredictDelta(uint tick, ref NetCodePlayModeTestGhostObjectSnapshotData baseline1,
                             ref NetCodePlayModeTestGhostObjectSnapshotData baseline2)
    {
        GhostDeltaPredictor predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        RotationValueX    = predictor.PredictInt(RotationValueX, baseline1.RotationValueX, baseline2.RotationValueX);
        RotationValueY    = predictor.PredictInt(RotationValueY, baseline1.RotationValueY, baseline2.RotationValueY);
        RotationValueZ    = predictor.PredictInt(RotationValueZ, baseline1.RotationValueZ, baseline2.RotationValueZ);
        RotationValueW    = predictor.PredictInt(RotationValueW, baseline1.RotationValueW, baseline2.RotationValueW);
        TranslationValueX =
            predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY =
            predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ =
            predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
    }
Example #23
0
    public void PredictDelta(uint tick, ref PlayerStateSnapshotData baseline1, ref PlayerStateSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        PlayerStateplayerId  = predictor.PredictInt(PlayerStateplayerId, baseline1.PlayerStateplayerId, baseline2.PlayerStateplayerId);
        PlayerStateteamIndex = predictor.PredictInt(PlayerStateteamIndex, baseline1.PlayerStateteamIndex, baseline2.PlayerStateteamIndex);
        PlayerStatescore     = predictor.PredictInt(PlayerStatescore, baseline1.PlayerStatescore, baseline2.PlayerStatescore);
        PlayerStategameModeSystemInitialized = (uint)predictor.PredictInt((int)PlayerStategameModeSystemInitialized, (int)baseline1.PlayerStategameModeSystemInitialized, (int)baseline2.PlayerStategameModeSystemInitialized);
        PlayerStatedisplayCountDown          = (uint)predictor.PredictInt((int)PlayerStatedisplayCountDown, (int)baseline1.PlayerStatedisplayCountDown, (int)baseline2.PlayerStatedisplayCountDown);
        PlayerStatecountDown          = predictor.PredictInt(PlayerStatecountDown, baseline1.PlayerStatecountDown, baseline2.PlayerStatecountDown);
        PlayerStatedisplayScoreBoard  = (uint)predictor.PredictInt((int)PlayerStatedisplayScoreBoard, (int)baseline1.PlayerStatedisplayScoreBoard, (int)baseline2.PlayerStatedisplayScoreBoard);
        PlayerStatedisplayGameScore   = (uint)predictor.PredictInt((int)PlayerStatedisplayGameScore, (int)baseline1.PlayerStatedisplayGameScore, (int)baseline2.PlayerStatedisplayGameScore);
        PlayerStatedisplayGameResult  = (uint)predictor.PredictInt((int)PlayerStatedisplayGameResult, (int)baseline1.PlayerStatedisplayGameResult, (int)baseline2.PlayerStatedisplayGameResult);
        PlayerStatedisplayGoal        = (uint)predictor.PredictInt((int)PlayerStatedisplayGoal, (int)baseline1.PlayerStatedisplayGoal, (int)baseline2.PlayerStatedisplayGoal);
        PlayerStategoalPositionX      = predictor.PredictInt(PlayerStategoalPositionX, baseline1.PlayerStategoalPositionX, baseline2.PlayerStategoalPositionX);
        PlayerStategoalPositionY      = predictor.PredictInt(PlayerStategoalPositionY, baseline1.PlayerStategoalPositionY, baseline2.PlayerStategoalPositionY);
        PlayerStategoalPositionZ      = predictor.PredictInt(PlayerStategoalPositionZ, baseline1.PlayerStategoalPositionZ, baseline2.PlayerStategoalPositionZ);
        PlayerStategoalDefendersColor = (uint)predictor.PredictInt((int)PlayerStategoalDefendersColor, (int)baseline1.PlayerStategoalDefendersColor, (int)baseline2.PlayerStategoalDefendersColor);
        PlayerStategoalAttackersColor = (uint)predictor.PredictInt((int)PlayerStategoalAttackersColor, (int)baseline1.PlayerStategoalAttackersColor, (int)baseline2.PlayerStategoalAttackersColor);
        PlayerStategoalAttackers      = (uint)predictor.PredictInt((int)PlayerStategoalAttackers, (int)baseline1.PlayerStategoalAttackers, (int)baseline2.PlayerStategoalAttackers);
        PlayerStategoalDefenders      = (uint)predictor.PredictInt((int)PlayerStategoalDefenders, (int)baseline1.PlayerStategoalDefenders, (int)baseline2.PlayerStategoalDefenders);
        PlayerStategoalCompletion     = predictor.PredictInt(PlayerStategoalCompletion, baseline1.PlayerStategoalCompletion, baseline2.PlayerStategoalCompletion);
    }
    public void PredictDelta(uint tick, ref BArcherSnapshotData baseline1, ref BArcherSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        HealthValue                  = predictor.PredictInt(HealthValue, baseline1.HealthValue, baseline2.HealthValue);
        PlayerUnitPlayerId           = predictor.PredictInt(PlayerUnitPlayerId, baseline1.PlayerUnitPlayerId, baseline2.PlayerUnitPlayerId);
        PlayerUnitUnitId             = predictor.PredictInt(PlayerUnitUnitId, baseline1.PlayerUnitUnitId, baseline2.PlayerUnitUnitId);
        UnitSelectionStateIsSelected = (uint)predictor.PredictInt((int)UnitSelectionStateIsSelected, (int)baseline1.UnitSelectionStateIsSelected, (int)baseline2.UnitSelectionStateIsSelected);
        RotationValueX               = predictor.PredictInt(RotationValueX, baseline1.RotationValueX, baseline2.RotationValueX);
        RotationValueY               = predictor.PredictInt(RotationValueY, baseline1.RotationValueY, baseline2.RotationValueY);
        RotationValueZ               = predictor.PredictInt(RotationValueZ, baseline1.RotationValueZ, baseline2.RotationValueZ);
        RotationValueW               = predictor.PredictInt(RotationValueW, baseline1.RotationValueW, baseline2.RotationValueW);
        TranslationValueX            = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY            = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ            = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
        Child0RotationValueX         = predictor.PredictInt(Child0RotationValueX, baseline1.Child0RotationValueX, baseline2.Child0RotationValueX);
        Child0RotationValueY         = predictor.PredictInt(Child0RotationValueY, baseline1.Child0RotationValueY, baseline2.Child0RotationValueY);
        Child0RotationValueZ         = predictor.PredictInt(Child0RotationValueZ, baseline1.Child0RotationValueZ, baseline2.Child0RotationValueZ);
        Child0RotationValueW         = predictor.PredictInt(Child0RotationValueW, baseline1.Child0RotationValueW, baseline2.Child0RotationValueW);
        Child0TranslationValueX      = predictor.PredictInt(Child0TranslationValueX, baseline1.Child0TranslationValueX, baseline2.Child0TranslationValueX);
        Child0TranslationValueY      = predictor.PredictInt(Child0TranslationValueY, baseline1.Child0TranslationValueY, baseline2.Child0TranslationValueY);
        Child0TranslationValueZ      = predictor.PredictInt(Child0TranslationValueZ, baseline1.Child0TranslationValueZ, baseline2.Child0TranslationValueZ);
        Child1RotationValueX         = predictor.PredictInt(Child1RotationValueX, baseline1.Child1RotationValueX, baseline2.Child1RotationValueX);
        Child1RotationValueY         = predictor.PredictInt(Child1RotationValueY, baseline1.Child1RotationValueY, baseline2.Child1RotationValueY);
        Child1RotationValueZ         = predictor.PredictInt(Child1RotationValueZ, baseline1.Child1RotationValueZ, baseline2.Child1RotationValueZ);
        Child1RotationValueW         = predictor.PredictInt(Child1RotationValueW, baseline1.Child1RotationValueW, baseline2.Child1RotationValueW);
        Child1TranslationValueX      = predictor.PredictInt(Child1TranslationValueX, baseline1.Child1TranslationValueX, baseline2.Child1TranslationValueX);
        Child1TranslationValueY      = predictor.PredictInt(Child1TranslationValueY, baseline1.Child1TranslationValueY, baseline2.Child1TranslationValueY);
        Child1TranslationValueZ      = predictor.PredictInt(Child1TranslationValueZ, baseline1.Child1TranslationValueZ, baseline2.Child1TranslationValueZ);
        Child2RotationValueX         = predictor.PredictInt(Child2RotationValueX, baseline1.Child2RotationValueX, baseline2.Child2RotationValueX);
        Child2RotationValueY         = predictor.PredictInt(Child2RotationValueY, baseline1.Child2RotationValueY, baseline2.Child2RotationValueY);
        Child2RotationValueZ         = predictor.PredictInt(Child2RotationValueZ, baseline1.Child2RotationValueZ, baseline2.Child2RotationValueZ);
        Child2RotationValueW         = predictor.PredictInt(Child2RotationValueW, baseline1.Child2RotationValueW, baseline2.Child2RotationValueW);
        Child2TranslationValueX      = predictor.PredictInt(Child2TranslationValueX, baseline1.Child2TranslationValueX, baseline2.Child2TranslationValueX);
        Child2TranslationValueY      = predictor.PredictInt(Child2TranslationValueY, baseline1.Child2TranslationValueY, baseline2.Child2TranslationValueY);
        Child2TranslationValueZ      = predictor.PredictInt(Child2TranslationValueZ, baseline1.Child2TranslationValueZ, baseline2.Child2TranslationValueZ);
        Child3RotationValueX         = predictor.PredictInt(Child3RotationValueX, baseline1.Child3RotationValueX, baseline2.Child3RotationValueX);
        Child3RotationValueY         = predictor.PredictInt(Child3RotationValueY, baseline1.Child3RotationValueY, baseline2.Child3RotationValueY);
        Child3RotationValueZ         = predictor.PredictInt(Child3RotationValueZ, baseline1.Child3RotationValueZ, baseline2.Child3RotationValueZ);
        Child3RotationValueW         = predictor.PredictInt(Child3RotationValueW, baseline1.Child3RotationValueW, baseline2.Child3RotationValueW);
        Child3TranslationValueX      = predictor.PredictInt(Child3TranslationValueX, baseline1.Child3TranslationValueX, baseline2.Child3TranslationValueX);
        Child3TranslationValueY      = predictor.PredictInt(Child3TranslationValueY, baseline1.Child3TranslationValueY, baseline2.Child3TranslationValueY);
        Child3TranslationValueZ      = predictor.PredictInt(Child3TranslationValueZ, baseline1.Child3TranslationValueZ, baseline2.Child3TranslationValueZ);
    }
Example #25
0
    public void PredictDelta(uint tick, ref PilotSnapshotData baseline1, ref PilotSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        CameraRigChildheadPoseX      = predictor.PredictInt(CameraRigChildheadPoseX, baseline1.CameraRigChildheadPoseX, baseline2.CameraRigChildheadPoseX);
        CameraRigChildheadPoseY      = predictor.PredictInt(CameraRigChildheadPoseY, baseline1.CameraRigChildheadPoseY, baseline2.CameraRigChildheadPoseY);
        CameraRigChildheadPoseZ      = predictor.PredictInt(CameraRigChildheadPoseZ, baseline1.CameraRigChildheadPoseZ, baseline2.CameraRigChildheadPoseZ);
        CameraRigChildheadRotX       = predictor.PredictInt(CameraRigChildheadRotX, baseline1.CameraRigChildheadRotX, baseline2.CameraRigChildheadRotX);
        CameraRigChildheadRotY       = predictor.PredictInt(CameraRigChildheadRotY, baseline1.CameraRigChildheadRotY, baseline2.CameraRigChildheadRotY);
        CameraRigChildheadRotZ       = predictor.PredictInt(CameraRigChildheadRotZ, baseline1.CameraRigChildheadRotZ, baseline2.CameraRigChildheadRotZ);
        CameraRigChildheadRotW       = predictor.PredictInt(CameraRigChildheadRotW, baseline1.CameraRigChildheadRotW, baseline2.CameraRigChildheadRotW);
        CameraRigChildleftHandPoseX  = predictor.PredictInt(CameraRigChildleftHandPoseX, baseline1.CameraRigChildleftHandPoseX, baseline2.CameraRigChildleftHandPoseX);
        CameraRigChildleftHandPoseY  = predictor.PredictInt(CameraRigChildleftHandPoseY, baseline1.CameraRigChildleftHandPoseY, baseline2.CameraRigChildleftHandPoseY);
        CameraRigChildleftHandPoseZ  = predictor.PredictInt(CameraRigChildleftHandPoseZ, baseline1.CameraRigChildleftHandPoseZ, baseline2.CameraRigChildleftHandPoseZ);
        CameraRigChildleftHandRotX   = predictor.PredictInt(CameraRigChildleftHandRotX, baseline1.CameraRigChildleftHandRotX, baseline2.CameraRigChildleftHandRotX);
        CameraRigChildleftHandRotY   = predictor.PredictInt(CameraRigChildleftHandRotY, baseline1.CameraRigChildleftHandRotY, baseline2.CameraRigChildleftHandRotY);
        CameraRigChildleftHandRotZ   = predictor.PredictInt(CameraRigChildleftHandRotZ, baseline1.CameraRigChildleftHandRotZ, baseline2.CameraRigChildleftHandRotZ);
        CameraRigChildleftHandRotW   = predictor.PredictInt(CameraRigChildleftHandRotW, baseline1.CameraRigChildleftHandRotW, baseline2.CameraRigChildleftHandRotW);
        CameraRigChildrightHandPoseX = predictor.PredictInt(CameraRigChildrightHandPoseX, baseline1.CameraRigChildrightHandPoseX, baseline2.CameraRigChildrightHandPoseX);
        CameraRigChildrightHandPoseY = predictor.PredictInt(CameraRigChildrightHandPoseY, baseline1.CameraRigChildrightHandPoseY, baseline2.CameraRigChildrightHandPoseY);
        CameraRigChildrightHandPoseZ = predictor.PredictInt(CameraRigChildrightHandPoseZ, baseline1.CameraRigChildrightHandPoseZ, baseline2.CameraRigChildrightHandPoseZ);
        CameraRigChildrightHandRotX  = predictor.PredictInt(CameraRigChildrightHandRotX, baseline1.CameraRigChildrightHandRotX, baseline2.CameraRigChildrightHandRotX);
        CameraRigChildrightHandRotY  = predictor.PredictInt(CameraRigChildrightHandRotY, baseline1.CameraRigChildrightHandRotY, baseline2.CameraRigChildrightHandRotY);
        CameraRigChildrightHandRotZ  = predictor.PredictInt(CameraRigChildrightHandRotZ, baseline1.CameraRigChildrightHandRotZ, baseline2.CameraRigChildrightHandRotZ);
        CameraRigChildrightHandRotW  = predictor.PredictInt(CameraRigChildrightHandRotW, baseline1.CameraRigChildrightHandRotW, baseline2.CameraRigChildrightHandRotW);
        PilotDataPlayerId            = predictor.PredictInt(PilotDataPlayerId, baseline1.PilotDataPlayerId, baseline2.PilotDataPlayerId);
        RotationValueX    = predictor.PredictInt(RotationValueX, baseline1.RotationValueX, baseline2.RotationValueX);
        RotationValueY    = predictor.PredictInt(RotationValueY, baseline1.RotationValueY, baseline2.RotationValueY);
        RotationValueZ    = predictor.PredictInt(RotationValueZ, baseline1.RotationValueZ, baseline2.RotationValueZ);
        RotationValueW    = predictor.PredictInt(RotationValueW, baseline1.RotationValueW, baseline2.RotationValueW);
        TranslationValueX = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
    }
Example #26
0
    public void PredictDelta(uint tick, ref NetSessionSnapshotData baseline1, ref NetSessionSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        NetSessionTimeToStart = predictor.PredictInt(NetSessionTimeToStart, baseline1.NetSessionTimeToStart, baseline2.NetSessionTimeToStart);
    }
Example #27
0
    public void PredictDelta(uint tick, ref SphereSnapshotData baseline1, ref SphereSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        PlayerDataplayerId      = predictor.PredictInt(PlayerDataplayerId, baseline1.PlayerDataplayerId, baseline2.PlayerDataplayerId);
        PlayerDatamaxHealth     = predictor.PredictInt(PlayerDatamaxHealth, baseline1.PlayerDatamaxHealth, baseline2.PlayerDatamaxHealth);
        PlayerDatacurrentHealth = predictor.PredictInt(PlayerDatacurrentHealth, baseline1.PlayerDatacurrentHealth, baseline2.PlayerDatacurrentHealth);
        PlayerDatadeath         = (uint)predictor.PredictInt((int)PlayerDatadeath, (int)baseline1.PlayerDatadeath, (int)baseline2.PlayerDatadeath);
        PlayerDataauto          = (uint)predictor.PredictInt((int)PlayerDataauto, (int)baseline1.PlayerDataauto, (int)baseline2.PlayerDataauto);
        PlayerDataautoSpawn     = (uint)predictor.PredictInt((int)PlayerDataautoSpawn, (int)baseline1.PlayerDataautoSpawn, (int)baseline2.PlayerDataautoSpawn);
        PlayerDatadestX         = predictor.PredictInt(PlayerDatadestX, baseline1.PlayerDatadestX, baseline2.PlayerDatadestX);
        PlayerDatadestY         = predictor.PredictInt(PlayerDatadestY, baseline1.PlayerDatadestY, baseline2.PlayerDatadestY);
        PlayerDatadestZ         = predictor.PredictInt(PlayerDatadestZ, baseline1.PlayerDatadestZ, baseline2.PlayerDatadestZ);
        PlayerDatadest2X        = predictor.PredictInt(PlayerDatadest2X, baseline1.PlayerDatadest2X, baseline2.PlayerDatadest2X);
        PlayerDatadest2Y        = predictor.PredictInt(PlayerDatadest2Y, baseline1.PlayerDatadest2Y, baseline2.PlayerDatadest2Y);
        PlayerDatadest2Z        = predictor.PredictInt(PlayerDatadest2Z, baseline1.PlayerDatadest2Z, baseline2.PlayerDatadest2Z);
        PlayerDatakilledBy      = predictor.PredictInt(PlayerDatakilledBy, baseline1.PlayerDatakilledBy, baseline2.PlayerDatakilledBy);
        PlayerDatakilledByID    = predictor.PredictInt(PlayerDatakilledByID, baseline1.PlayerDatakilledByID, baseline2.PlayerDatakilledByID);
        RotationValueX          = predictor.PredictInt(RotationValueX, baseline1.RotationValueX, baseline2.RotationValueX);
        RotationValueY          = predictor.PredictInt(RotationValueY, baseline1.RotationValueY, baseline2.RotationValueY);
        RotationValueZ          = predictor.PredictInt(RotationValueZ, baseline1.RotationValueZ, baseline2.RotationValueZ);
        RotationValueW          = predictor.PredictInt(RotationValueW, baseline1.RotationValueW, baseline2.RotationValueW);
        TranslationValueX       = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY       = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ       = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
    }
Example #28
0
    public void PredictDelta(uint tick, ref CharacterSnapshotData baseline1, ref CharacterSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        AttackAttackType                  = predictor.PredictInt(AttackAttackType, baseline1.AttackAttackType, baseline2.AttackAttackType);
        AttackSeed                        = predictor.PredictInt(AttackSeed, baseline1.AttackSeed, baseline2.AttackSeed);
        AttackAttackDirectionX            = predictor.PredictInt(AttackAttackDirectionX, baseline1.AttackAttackDirectionX, baseline2.AttackAttackDirectionX);
        AttackAttackDirectionY            = predictor.PredictInt(AttackAttackDirectionY, baseline1.AttackAttackDirectionY, baseline2.AttackAttackDirectionY);
        AttackTarget                      = predictor.PredictInt(AttackTarget, baseline1.AttackTarget, baseline2.AttackTarget);
        AttackNeedApplyDamage             = (uint)predictor.PredictInt((int)AttackNeedApplyDamage, (int)baseline1.AttackNeedApplyDamage, (int)baseline2.AttackNeedApplyDamage);
        DamageDamageType                  = predictor.PredictInt(DamageDamageType, baseline1.DamageDamageType, baseline2.DamageDamageType);
        MovableCharacterComponentPlayerId = predictor.PredictInt(MovableCharacterComponentPlayerId, baseline1.MovableCharacterComponentPlayerId, baseline2.MovableCharacterComponentPlayerId);
        PlayerDatahealth                  = predictor.PredictInt(PlayerDatahealth, baseline1.PlayerDatahealth, baseline2.PlayerDatahealth);
        PlayerDataprimarySkillId          = predictor.PredictInt(PlayerDataprimarySkillId, baseline1.PlayerDataprimarySkillId, baseline2.PlayerDataprimarySkillId);
        PlayerDatamaxHealth               = predictor.PredictInt(PlayerDatamaxHealth, baseline1.PlayerDatamaxHealth, baseline2.PlayerDatamaxHealth);
        PlayerDatapower                   = predictor.PredictInt(PlayerDatapower, baseline1.PlayerDatapower, baseline2.PlayerDatapower);
        PlayerDatamagic                   = predictor.PredictInt(PlayerDatamagic, baseline1.PlayerDatamagic, baseline2.PlayerDatamagic);
        PlayerDatadamageRadius            = predictor.PredictInt(PlayerDatadamageRadius, baseline1.PlayerDatadamageRadius, baseline2.PlayerDatadamageRadius);
        PlayerDatainventory               = (uint)predictor.PredictInt((int)PlayerDatainventory, (int)baseline1.PlayerDatainventory, (int)baseline2.PlayerDatainventory);
        PlayerDataattackSkillId           = predictor.PredictInt(PlayerDataattackSkillId, baseline1.PlayerDataattackSkillId, baseline2.PlayerDataattackSkillId);
        PlayerDatadefenceSkillId          = predictor.PredictInt(PlayerDatadefenceSkillId, baseline1.PlayerDatadefenceSkillId, baseline2.PlayerDatadefenceSkillId);
        PlayerDatautilsSkillId            = predictor.PredictInt(PlayerDatautilsSkillId, baseline1.PlayerDatautilsSkillId, baseline2.PlayerDatautilsSkillId);
        PlayerDatastun                    = (uint)predictor.PredictInt((int)PlayerDatastun, (int)baseline1.PlayerDatastun, (int)baseline2.PlayerDatastun);
        PrefabCreatorNameId               = (uint)predictor.PredictInt((int)PrefabCreatorNameId, (int)baseline1.PrefabCreatorNameId, (int)baseline2.PrefabCreatorNameId);
        PrefabCreatorSkinId               = (uint)predictor.PredictInt((int)PrefabCreatorSkinId, (int)baseline1.PrefabCreatorSkinId, (int)baseline2.PrefabCreatorSkinId);
        RotationValueX                    = predictor.PredictInt(RotationValueX, baseline1.RotationValueX, baseline2.RotationValueX);
        RotationValueY                    = predictor.PredictInt(RotationValueY, baseline1.RotationValueY, baseline2.RotationValueY);
        RotationValueZ                    = predictor.PredictInt(RotationValueZ, baseline1.RotationValueZ, baseline2.RotationValueZ);
        RotationValueW                    = predictor.PredictInt(RotationValueW, baseline1.RotationValueW, baseline2.RotationValueW);
        TranslationValueX                 = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY                 = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ                 = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
    }
    public void PredictDelta(uint tick, ref LagPlayerSnapshotData baseline1, ref LagPlayerSnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        LagPlayerplayerId = predictor.PredictInt(LagPlayerplayerId, baseline1.LagPlayerplayerId, baseline2.LagPlayerplayerId);
    }
Example #30
0
    public void PredictDelta(uint tick, ref Tree_1SnapshotData baseline1, ref Tree_1SnapshotData baseline2)
    {
        var predictor = new GhostDeltaPredictor(tick, this.tick, baseline1.tick, baseline2.tick);

        RotationValueX          = predictor.PredictInt(RotationValueX, baseline1.RotationValueX, baseline2.RotationValueX);
        RotationValueY          = predictor.PredictInt(RotationValueY, baseline1.RotationValueY, baseline2.RotationValueY);
        RotationValueZ          = predictor.PredictInt(RotationValueZ, baseline1.RotationValueZ, baseline2.RotationValueZ);
        RotationValueW          = predictor.PredictInt(RotationValueW, baseline1.RotationValueW, baseline2.RotationValueW);
        TranslationValueX       = predictor.PredictInt(TranslationValueX, baseline1.TranslationValueX, baseline2.TranslationValueX);
        TranslationValueY       = predictor.PredictInt(TranslationValueY, baseline1.TranslationValueY, baseline2.TranslationValueY);
        TranslationValueZ       = predictor.PredictInt(TranslationValueZ, baseline1.TranslationValueZ, baseline2.TranslationValueZ);
        Child0RotationValueX    = predictor.PredictInt(Child0RotationValueX, baseline1.Child0RotationValueX, baseline2.Child0RotationValueX);
        Child0RotationValueY    = predictor.PredictInt(Child0RotationValueY, baseline1.Child0RotationValueY, baseline2.Child0RotationValueY);
        Child0RotationValueZ    = predictor.PredictInt(Child0RotationValueZ, baseline1.Child0RotationValueZ, baseline2.Child0RotationValueZ);
        Child0RotationValueW    = predictor.PredictInt(Child0RotationValueW, baseline1.Child0RotationValueW, baseline2.Child0RotationValueW);
        Child0TranslationValueX = predictor.PredictInt(Child0TranslationValueX, baseline1.Child0TranslationValueX, baseline2.Child0TranslationValueX);
        Child0TranslationValueY = predictor.PredictInt(Child0TranslationValueY, baseline1.Child0TranslationValueY, baseline2.Child0TranslationValueY);
        Child0TranslationValueZ = predictor.PredictInt(Child0TranslationValueZ, baseline1.Child0TranslationValueZ, baseline2.Child0TranslationValueZ);
        Child1RotationValueX    = predictor.PredictInt(Child1RotationValueX, baseline1.Child1RotationValueX, baseline2.Child1RotationValueX);
        Child1RotationValueY    = predictor.PredictInt(Child1RotationValueY, baseline1.Child1RotationValueY, baseline2.Child1RotationValueY);
        Child1RotationValueZ    = predictor.PredictInt(Child1RotationValueZ, baseline1.Child1RotationValueZ, baseline2.Child1RotationValueZ);
        Child1RotationValueW    = predictor.PredictInt(Child1RotationValueW, baseline1.Child1RotationValueW, baseline2.Child1RotationValueW);
        Child1TranslationValueX = predictor.PredictInt(Child1TranslationValueX, baseline1.Child1TranslationValueX, baseline2.Child1TranslationValueX);
        Child1TranslationValueY = predictor.PredictInt(Child1TranslationValueY, baseline1.Child1TranslationValueY, baseline2.Child1TranslationValueY);
        Child1TranslationValueZ = predictor.PredictInt(Child1TranslationValueZ, baseline1.Child1TranslationValueZ, baseline2.Child1TranslationValueZ);
        Child2RotationValueX    = predictor.PredictInt(Child2RotationValueX, baseline1.Child2RotationValueX, baseline2.Child2RotationValueX);
        Child2RotationValueY    = predictor.PredictInt(Child2RotationValueY, baseline1.Child2RotationValueY, baseline2.Child2RotationValueY);
        Child2RotationValueZ    = predictor.PredictInt(Child2RotationValueZ, baseline1.Child2RotationValueZ, baseline2.Child2RotationValueZ);
        Child2RotationValueW    = predictor.PredictInt(Child2RotationValueW, baseline1.Child2RotationValueW, baseline2.Child2RotationValueW);
        Child2TranslationValueX = predictor.PredictInt(Child2TranslationValueX, baseline1.Child2TranslationValueX, baseline2.Child2TranslationValueX);
        Child2TranslationValueY = predictor.PredictInt(Child2TranslationValueY, baseline1.Child2TranslationValueY, baseline2.Child2TranslationValueY);
        Child2TranslationValueZ = predictor.PredictInt(Child2TranslationValueZ, baseline1.Child2TranslationValueZ, baseline2.Child2TranslationValueZ);
        Child3RotationValueX    = predictor.PredictInt(Child3RotationValueX, baseline1.Child3RotationValueX, baseline2.Child3RotationValueX);
        Child3RotationValueY    = predictor.PredictInt(Child3RotationValueY, baseline1.Child3RotationValueY, baseline2.Child3RotationValueY);
        Child3RotationValueZ    = predictor.PredictInt(Child3RotationValueZ, baseline1.Child3RotationValueZ, baseline2.Child3RotationValueZ);
        Child3RotationValueW    = predictor.PredictInt(Child3RotationValueW, baseline1.Child3RotationValueW, baseline2.Child3RotationValueW);
        Child3TranslationValueX = predictor.PredictInt(Child3TranslationValueX, baseline1.Child3TranslationValueX, baseline2.Child3TranslationValueX);
        Child3TranslationValueY = predictor.PredictInt(Child3TranslationValueY, baseline1.Child3TranslationValueY, baseline2.Child3TranslationValueY);
        Child3TranslationValueZ = predictor.PredictInt(Child3TranslationValueZ, baseline1.Child3TranslationValueZ, baseline2.Child3TranslationValueZ);
        Child4RotationValueX    = predictor.PredictInt(Child4RotationValueX, baseline1.Child4RotationValueX, baseline2.Child4RotationValueX);
        Child4RotationValueY    = predictor.PredictInt(Child4RotationValueY, baseline1.Child4RotationValueY, baseline2.Child4RotationValueY);
        Child4RotationValueZ    = predictor.PredictInt(Child4RotationValueZ, baseline1.Child4RotationValueZ, baseline2.Child4RotationValueZ);
        Child4RotationValueW    = predictor.PredictInt(Child4RotationValueW, baseline1.Child4RotationValueW, baseline2.Child4RotationValueW);
        Child4TranslationValueX = predictor.PredictInt(Child4TranslationValueX, baseline1.Child4TranslationValueX, baseline2.Child4TranslationValueX);
        Child4TranslationValueY = predictor.PredictInt(Child4TranslationValueY, baseline1.Child4TranslationValueY, baseline2.Child4TranslationValueY);
        Child4TranslationValueZ = predictor.PredictInt(Child4TranslationValueZ, baseline1.Child4TranslationValueZ, baseline2.Child4TranslationValueZ);
    }