Exemplo n.º 1
0
        protected override Dictionary <Vector3, ClientPositionHitResults> MakePosToHitResultsList(
            Dictionary <ActorData, ClientActorHitResults> actorToHitResults,
            List <ServerClientUtils.SequenceStartData> seqStartDataList)
        {
            if (Barriers.Count != 2)
            {
                Log.Error($"Lockwood's ({m_caster.DisplayName}) Trapwire resolution failed! {Barriers.Count} barriers instead of 2!");
                return(new Dictionary <Vector3, ClientPositionHitResults>());
            }

            return(new Dictionary <Vector3, ClientPositionHitResults>()
            {
                {
                    m_targetPos,
                    new ClientPositionHitResults(
                        new List <ClientEffectStartData>(),
                        new List <ClientBarrierStartData>()
                    {
                        new ClientBarrierStartData(Barriers[0].m_guid, Barriers[0].GetSequenceStartDataList(), Barrier.BarrierToSerializeInfo(Barriers[0])),
                        new ClientBarrierStartData(Barriers[1].m_guid, new List <ServerClientUtils.SequenceStartData>(), Barrier.BarrierToSerializeInfo(Barriers[1]))
                    },
                        new List <int>(),
                        new List <int>(),
                        new List <ServerClientUtils.SequenceEndData>(),
                        new List <ClientMovementResults>())
                }
            });
        }