public void SerializeToStream(ref IBitStream stream)
    {
        sbyte triggeringMoverActorIndex = (sbyte)m_triggeringMover.ActorIndex;

        stream.Serialize(ref triggeringMoverActorIndex);
        MovementUtils.SerializeLightweightPath(m_triggeringPath, stream);
        AbilityResultsUtils.SerializeSequenceStartDataListToStream(ref stream, m_seqStartDataList);

        if (m_effectResults != null)
        {
            sbyte responseType = (sbyte)MovementResults_GameplayResponseType.Effect;
            stream.Serialize(ref responseType);
            m_effectResults.SerializeToStream(ref stream);
        }
        else if (m_barrierResults != null)
        {
            sbyte responseType = (sbyte)MovementResults_GameplayResponseType.Barrier;
            stream.Serialize(ref responseType);
            m_barrierResults.SerializeToStream(ref stream);
        }
        else if (m_powerupResults != null)
        {
            sbyte responseType = (sbyte)MovementResults_GameplayResponseType.Powerup;
            stream.Serialize(ref responseType);
            m_powerupResults.SerializeToStream(ref stream);
        }
        else if (m_gameModeResults != null)
        {
            sbyte responseType = (sbyte)MovementResults_GameplayResponseType.GameMode;
            stream.Serialize(ref responseType);
            m_gameModeResults.SerializeToStream(ref stream);
        }
    }
    public void SerializeToStream(ref IBitStream stream)
    {
        AbilityResultsUtils.SerializeSequenceStartDataListToStream(ref stream, m_seqStartDataList);
        m_effectResults.SerializeToStream(ref stream);
        byte extraFlags = GetExtraFlags();

        stream.Serialize(ref extraFlags);
    }
    public void SerializeToStream(ref IBitStream stream)
    {
        sbyte casterActorIndex = (sbyte)GetCaster().ActorIndex;
        sbyte abilityAction    = (sbyte)GetSourceActionType();

        stream.Serialize(ref casterActorIndex);
        stream.Serialize(ref abilityAction);
        AbilityResultsUtils.SerializeSequenceStartDataListToStream(ref stream, m_seqStartDataList);
        AbilityResultsUtils.SerializeActorHitResultsDictionaryToStream(ref stream, m_actorToHitResults);
        AbilityResultsUtils.SerializePositionHitResultsDictionaryToStream(ref stream, m_posToHitResults);
    }
    public void SerializeToStream(ref IBitStream stream)
    {
        uint  effectGUID              = (uint)m_effectGUID;
        sbyte casterActorIndex        = (sbyte)m_effectCaster.ActorIndex;
        sbyte sourceAbilityActionType = (sbyte)m_sourceAbilityActionType;

        stream.Serialize(ref effectGUID);
        stream.Serialize(ref casterActorIndex);
        stream.Serialize(ref sourceAbilityActionType);
        AbilityResultsUtils.SerializeSequenceStartDataListToStream(ref stream, m_seqStartDataList);
        AbilityResultsUtils.SerializeActorHitResultsDictionaryToStream(ref stream, m_actorToHitResults);
        AbilityResultsUtils.SerializePositionHitResultsDictionaryToStream(ref stream, m_posToHitResults);
    }
Exemple #5
0
 public void SerializeToStream(ref IBitStream stream)
 {
     AbilityResultsUtils.SerializeSequenceStartDataListToStream(ref stream, m_seqStartDataList);
     m_powerupAbilityResults.SerializeToStream(ref stream);
 }