27 | | * Look at the implementaion of the above classes. You should be able to copy a most of the things. |
28 | | * Add a new XMLPort macro to the XMLPort function of the class the sound belongs to(most likely XMLPortLoadOnly), name the function loadFooSound or something similar |
29 | | * Implement the load function, for some examples look at the above classes |
30 | | * Add the needed members to the class (at least one SoundBase pointer) |
31 | | * Add the calls to SondBase::play(bool loop) where you want to have the sound being played |
| 27 | 1. Look at the implementaion of the above classes. You should be able to copy a most of the things. |
| 28 | 1. Add a new XMLPort macro to the XMLPort function of the class the sound belongs to(most likely XMLPortLoadOnly), name the function loadFooSound or something similar |
| 29 | 1. Implement the load function, for some examples look at the above classes |
| 30 | 1. Add the needed members to the class (at least one SoundBase pointer) |
| 31 | 1. Add the calls to SondBase::play(bool loop) where you want to have the sound being played |