Beispiel #1
0
    void On_MAChanged(ModuleMA newMA)
    {
        if (m_MA != null)
        {
            if (!M_MA.CardInfo.BaseInfo.IsTemp)
            {
                BattlePlayer.CardDeckManager.CardDeck.RecycleCardInstanceID(m_MA.OriginCardInstanceId);
            }
            m_MA.UnRegisterSideEffect();
        }

        m_MA = newMA;
        BattlePlayer.GameManager.EventManager.Invoke(SideEffectExecute.TriggerTime.OnEquipEquiped, new ExecutorInfo(clientId: BattlePlayer.ClientId, mechId: M_MechID, equipId: m_MA.M_EquipID));
        EquipMAServerRequest request = new EquipMAServerRequest(BattlePlayer.ClientId, (CardInfo_Equip)newMA.GetCurrentCardInfo(), M_MechID, m_MA.M_EquipID);

        BattlePlayer.MyClientProxy.BattleGameManager.Broadcast_AddRequestToOperationResponse(request);
    }
Beispiel #2
0
    void On_MAEquiped(ModuleMA newMA)
    {
        m_MA = newMA;
        BattlePlayer.GameManager.EventManager.Invoke(SideEffectExecute.TriggerTime.OnEquipEquiped, new ExecutorInfo(clientId: BattlePlayer.ClientId, mechId: M_MechID, equipId: m_MA.M_EquipID));
        EquipMAServerRequest request = new EquipMAServerRequest(BattlePlayer.ClientId, (CardInfo_Equip)newMA.GetCurrentCardInfo(), M_MechID, m_MA.M_EquipID);

        BattlePlayer.MyClientProxy.BattleGameManager.Broadcast_AddRequestToOperationResponse(request);
    }