Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2015, 5:37:15 PM (9 years ago)
Author:
landauf
Message:

callStaticNetworkFunction() and callMemberNetworkFunction() are now template functions instead of macros.
simplified function call interface: always pass five MultiType-references. Check if MultiType.null() evaluates to true to see if the argument was defined.
moved references to NetworkFunctionManager to NetworkFunctionIncludes.cc.
this also fixed a linker error in MSVC by including NetworkFunctionIncludes.h in a build-unit inside the network library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/modules/pickup/PickupManager.cc

    r10465 r10478  
    214214        else
    215215        {
    216             callStaticNetworkFunction(PickupManager::pickupChangedUsedNetwork, clientId, index, used, pickup->isUsable(), pickup->isUnusable());
     216            callStaticNetworkFunction(&PickupManager::pickupChangedUsedNetwork, clientId, index, used, pickup->isUsable(), pickup->isUnusable());
    217217        }
    218218    }
     
    318318            if(this->representations_.find(pickup->getRepresentationName()) == this->representations_.end())
    319319            {
    320                 callStaticNetworkFunction(PickupManager::pickupChangedPickedUpNetwork, clientId, index, pickup->isUsable(), this->defaultRepresentation_->getObjectID(), pickedUp);
     320                callStaticNetworkFunction(&PickupManager::pickupChangedPickedUpNetwork, clientId, index, pickup->isUsable(), this->defaultRepresentation_->getObjectID(), pickedUp);
    321321            }
    322322            else
    323323            {
    324                 callStaticNetworkFunction(PickupManager::pickupChangedPickedUpNetwork, clientId, index, pickup->isUsable(), this->representations_[pickup->getRepresentationName()]->getObjectID(), pickedUp);
     324                callStaticNetworkFunction(&PickupManager::pickupChangedPickedUpNetwork, clientId, index, pickup->isUsable(), this->representations_[pickup->getRepresentationName()]->getObjectID(), pickedUp);
    325325            }
    326326        }
     
    409409        else
    410410        {
    411             callStaticNetworkFunction(PickupManager::dropPickupNetworked, 0, pickup);
     411            callStaticNetworkFunction(&PickupManager::dropPickupNetworked, 0, pickup);
    412412        }
    413413    }
     
    452452        else
    453453        {
    454             callStaticNetworkFunction(PickupManager::usePickupNetworked, 0, pickup, use);
     454            callStaticNetworkFunction(&PickupManager::usePickupNetworked, 0, pickup, use);
    455455        }
    456456    }
Note: See TracChangeset for help on using the changeset viewer.