41 SoundScriptTemplate::RegisterRefCountingObjectGeneric(engine,
"SoundScriptTemplateClass");
48 result = engine->RegisterObjectMethod(
"SoundScriptTemplateClass",
"string getStartSoundName()",
WRAP_MFN(
SoundScriptTemplate, getStartSoundName), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
49 result = engine->RegisterObjectMethod(
"SoundScriptTemplateClass",
"float getStartSoundPitch()",
WRAP_MFN(
SoundScriptTemplate, getStartSoundPitch), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
50 result = engine->RegisterObjectMethod(
"SoundScriptTemplateClass",
"string getStopSoundName()",
WRAP_MFN(
SoundScriptTemplate, getStopSoundName), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
51 result = engine->RegisterObjectMethod(
"SoundScriptTemplateClass",
"float getStopSoundPitch()",
WRAP_MFN(
SoundScriptTemplate, getStopSoundPitch), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
59 Sound::RegisterRefCountingObjectGeneric(engine,
"SoundClass");
62 result = engine->RegisterObjectMethod(
"SoundClass",
"void setPitch(float pitch)",
WRAP_MFN(
Sound, setPitch), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
63 result = engine->RegisterObjectMethod(
"SoundClass",
"void setGain(float gain)",
WRAP_MFN(
Sound, setGain), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
64 result = engine->RegisterObjectMethod(
"SoundClass",
"void setPosition(vector3 pos)",
WRAP_MFN(
Sound, setPosition), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
65 result = engine->RegisterObjectMethod(
"SoundClass",
"void setVelocity(vector3 vel)",
WRAP_MFN(
Sound, setVelocity), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
66 result = engine->RegisterObjectMethod(
"SoundClass",
"void setLoop(bool loop)",
WRAP_MFN(
Sound, setLoop), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
67 result = engine->RegisterObjectMethod(
"SoundClass",
"void setEnabled(bool e)",
WRAP_MFN(
Sound, setEnabled), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
68 result = engine->RegisterObjectMethod(
"SoundClass",
"void play()",
WRAP_MFN(
Sound, play), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
69 result = engine->RegisterObjectMethod(
"SoundClass",
"void stop()",
WRAP_MFN(
Sound, stop), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
71 result = engine->RegisterObjectMethod(
"SoundClass",
"bool getEnabled()",
WRAP_MFN(
Sound, getEnabled), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
72 result = engine->RegisterObjectMethod(
"SoundClass",
"bool isPlaying()",
WRAP_MFN(
Sound, isPlaying), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
73 result = engine->RegisterObjectMethod(
"SoundClass",
"float getAudibility() ",
WRAP_MFN(
Sound, getAudibility), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
74 result = engine->RegisterObjectMethod(
"SoundClass",
"float getGain() ",
WRAP_MFN(
Sound, getGain), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
76 result = engine->RegisterObjectMethod(
"SoundClass",
"bool getLoop()",
WRAP_MFN(
Sound, getLoop), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
77 result = engine->RegisterObjectMethod(
"SoundClass",
"int getCurrentHardwareIndex()",
WRAP_MFN(
Sound, getCurrentHardwareIndex), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
78 result = engine->RegisterObjectMethod(
"SoundClass",
"uint getBuffer()",
WRAP_MFN(
Sound, getBuffer), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
79 result = engine->RegisterObjectMethod(
"SoundClass",
"vector3 getPosition()",
WRAP_MFN(
Sound, getPosition), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
80 result = engine->RegisterObjectMethod(
"SoundClass",
"vector3 getVelocity()",
WRAP_MFN(
Sound, getVelocity), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
81 result = engine->RegisterObjectMethod(
"SoundClass",
"int getSourceIndex()",
WRAP_MFN(
Sound, getSourceIndex), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
84 SoundScriptInstance::RegisterRefCountingObjectGeneric(engine,
"SoundScriptInstanceClass");
90 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"void setPosition(vector3 pos)",
WRAP_MFN(
SoundScriptInstance, setPosition), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
91 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"void setVelocity(vector3 velo)",
WRAP_MFN(
SoundScriptInstance, setVelocity), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
100 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"float getStartSoundPitchgain()",
WRAP_MFN(
SoundScriptInstance, getStartSoundPitchgain), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
101 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"float getStopSoundPitchgain()",
WRAP_MFN(
SoundScriptInstance, getStopSoundPitchgain), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
102 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"float getSoundPitchgain(int pos)",
WRAP_MFN(
SoundScriptInstance, getSoundPitchgain), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
103 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"int getActorInstanceId()",
WRAP_MFN(
SoundScriptInstance, getActorInstanceId), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
104 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"const string& getInstanceName()",
WRAP_MFN(
SoundScriptInstance, getInstanceName), asCALL_GENERIC);
ROR_ASSERT(result >= 0);