Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 20, 2009, 11:11:32 AM (14 years ago)
Author:
rgrieder
Message:

Changed "source" parameter of AmbientSound to "ambientSource" to restore consistency with the c++ methods.
Adjusted sound.oxw file.

Also moved XML ports form WorldSound/AmbientSound to BaseSound::XMLPortExtern.
To make that work, I had to insert a dynamic_cast into the XMLPortParamGeneric macro. Shouldn't be a problem though. Just don't use XMLPortParam inside a class that might not be a BaseObject (at least dynamically).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sound3/src/libraries/core/XMLPort.h

    r5929 r6102  
    184184        ClassIdentifier<classname>::getIdentifier()->addXMLPortParamContainer(paramname, containername); \
    185185    } \
    186     containername->port(static_cast<BaseObject*>(this), object, xmlelement, mode)
     186    containername->port(dynamic_cast<BaseObject*>(this), object, xmlelement, mode)
    187187
    188188// --------------------
Note: See TracChangeset for help on using the changeset viewer.