28 using namespace AngelScript;
35 result = engine->RegisterEnum(
"SoundTriggers");
ROR_ASSERT(result >= 0);
36 result = engine->RegisterEnumValue(
"SoundTriggers",
"SS_TRIG_NONE",
SS_TRIG_NONE);
ROR_ASSERT(result >= 0);
42 result = engine->RegisterEnumValue(
"SoundTriggers",
"SS_TRIG_HORN",
SS_TRIG_HORN);
ROR_ASSERT(result >= 0);
44 result = engine->RegisterEnumValue(
"SoundTriggers",
"SS_TRIG_PUMP",
SS_TRIG_PUMP);
ROR_ASSERT(result >= 0);
51 result = engine->RegisterEnumValue(
"SoundTriggers",
"SS_TRIG_AIR",
SS_TRIG_AIR);
ROR_ASSERT(result >= 0);
67 result = engine->RegisterEnumValue(
"SoundTriggers",
"SS_TRIG_PARK",
SS_TRIG_PARK);
ROR_ASSERT(result >= 0);
80 result = engine->RegisterEnumValue(
"SoundTriggers",
"SS_TRIG_AOA",
SS_TRIG_AOA);
ROR_ASSERT(result >= 0);
104 result = engine->RegisterEnum(
"ModulationSources");
ROR_ASSERT(result >= 0);
105 result = engine->RegisterEnumValue(
"ModulationSources",
"SS_MOD_NONE",
SS_MOD_NONE);
ROR_ASSERT(result >= 0);
106 result = engine->RegisterEnumValue(
"ModulationSources",
"SS_MOD_ENGINE",
SS_MOD_ENGINE);
ROR_ASSERT(result >= 0);
107 result = engine->RegisterEnumValue(
"ModulationSources",
"SS_MOD_TURBO",
SS_MOD_TURBO);
ROR_ASSERT(result >= 0);
114 result = engine->RegisterEnumValue(
"ModulationSources",
"SS_MOD_TORQUE",
SS_MOD_TORQUE);
ROR_ASSERT(result >= 0);
116 result = engine->RegisterEnumValue(
"ModulationSources",
"SS_MOD_CREAK",
SS_MOD_CREAK);
ROR_ASSERT(result >= 0);
117 result = engine->RegisterEnumValue(
"ModulationSources",
"SS_MOD_BREAK",
SS_MOD_BREAK);
ROR_ASSERT(result >= 0);
119 result = engine->RegisterEnumValue(
"ModulationSources",
"SS_MOD_PUMP",
SS_MOD_PUMP);
ROR_ASSERT(result >= 0);
133 result = engine->RegisterEnumValue(
"ModulationSources",
"SS_MOD_AOA",
SS_MOD_AOA);
ROR_ASSERT(result >= 0);
141 result = engine->RegisterObjectMethod(
"SoundScriptTemplateClass",
"int getNumSounds()", asMETHOD(
SoundScriptTemplate, getNumSounds), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
142 result = engine->RegisterObjectMethod(
"SoundScriptTemplateClass",
"string getSoundName(int)", asMETHOD(
SoundScriptTemplate, getSoundName), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
143 result = engine->RegisterObjectMethod(
"SoundScriptTemplateClass",
"float getSoundPitch(int)", asMETHOD(
SoundScriptTemplate, getSoundPitch), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
145 result = engine->RegisterObjectMethod(
"SoundScriptTemplateClass",
"string getStartSoundName()", asMETHOD(
SoundScriptTemplate, getStartSoundName), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
146 result = engine->RegisterObjectMethod(
"SoundScriptTemplateClass",
"float getStartSoundPitch()", asMETHOD(
SoundScriptTemplate, getStartSoundPitch), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
147 result = engine->RegisterObjectMethod(
"SoundScriptTemplateClass",
"string getStopSoundName()", asMETHOD(
SoundScriptTemplate, getStopSoundName), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
148 result = engine->RegisterObjectMethod(
"SoundScriptTemplateClass",
"float getStopSoundPitch()", asMETHOD(
SoundScriptTemplate, getStopSoundPitch), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
150 result = engine->RegisterObjectMethod(
"SoundScriptTemplateClass",
"string getName()", asMETHOD(
SoundScriptTemplate, getName), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
151 result = engine->RegisterObjectMethod(
"SoundScriptTemplateClass",
"string getFileName()", asMETHOD(
SoundScriptTemplate, getFileName), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
152 result = engine->RegisterObjectMethod(
"SoundScriptTemplateClass",
"string getGroupName()", asMETHOD(
SoundScriptTemplate, getGroupName), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
153 result = engine->RegisterObjectMethod(
"SoundScriptTemplateClass",
"bool isBaseTemplate()", asMETHOD(
SoundScriptTemplate, isBaseTemplate), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
159 result = engine->RegisterObjectMethod(
"SoundClass",
"void setPitch(float pitch)", asMETHOD(
Sound, setPitch), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
160 result = engine->RegisterObjectMethod(
"SoundClass",
"void setGain(float gain)", asMETHOD(
Sound, setGain), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
161 result = engine->RegisterObjectMethod(
"SoundClass",
"void setPosition(vector3 pos)", asMETHOD(
Sound, setPosition), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
162 result = engine->RegisterObjectMethod(
"SoundClass",
"void setVelocity(vector3 vel)", asMETHOD(
Sound, setVelocity), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
163 result = engine->RegisterObjectMethod(
"SoundClass",
"void setLoop(bool loop)", asMETHOD(
Sound, setLoop), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
164 result = engine->RegisterObjectMethod(
"SoundClass",
"void setEnabled(bool e)", asMETHOD(
Sound, setEnabled), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
165 result = engine->RegisterObjectMethod(
"SoundClass",
"void play()", asMETHOD(
Sound, play), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
166 result = engine->RegisterObjectMethod(
"SoundClass",
"void stop()", asMETHOD(
Sound, stop), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
168 result = engine->RegisterObjectMethod(
"SoundClass",
"bool getEnabled()", asMETHOD(
Sound, getEnabled), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
169 result = engine->RegisterObjectMethod(
"SoundClass",
"bool isPlaying()", asMETHOD(
Sound, isPlaying), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
170 result = engine->RegisterObjectMethod(
"SoundClass",
"float getAudibility() ", asMETHOD(
Sound, getAudibility), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
171 result = engine->RegisterObjectMethod(
"SoundClass",
"float getGain() ", asMETHOD(
Sound, getGain), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
172 result = engine->RegisterObjectMethod(
"SoundClass",
"float getPitch() ", asMETHOD(
Sound,
getPitch), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
173 result = engine->RegisterObjectMethod(
"SoundClass",
"bool getLoop()", asMETHOD(
Sound, getLoop), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
174 result = engine->RegisterObjectMethod(
"SoundClass",
"int getCurrentHardwareIndex()", asMETHOD(
Sound, getCurrentHardwareIndex), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
175 result = engine->RegisterObjectMethod(
"SoundClass",
"uint getBuffer()", asMETHOD(
Sound, getBuffer), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
176 result = engine->RegisterObjectMethod(
"SoundClass",
"vector3 getPosition()", asMETHOD(
Sound, getPosition), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
177 result = engine->RegisterObjectMethod(
"SoundClass",
"vector3 getVelocity()", asMETHOD(
Sound, getVelocity), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
178 result = engine->RegisterObjectMethod(
"SoundClass",
"int getSourceIndex()", asMETHOD(
Sound, getSourceIndex), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
184 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"void runOnce()", asMETHOD(
SoundScriptInstance, runOnce), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
185 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"void setPitch(float pitch)", asMETHOD(
SoundScriptInstance, setPitch), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
186 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"void setGain(float gain)", asMETHOD(
SoundScriptInstance, setGain), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
187 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"void setPosition(vector3 pos)", asMETHOD(
SoundScriptInstance, setPosition), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
188 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"void setVelocity(vector3 velo)", asMETHOD(
SoundScriptInstance, setVelocity), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
189 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"void start()", asMETHOD(
SoundScriptInstance, start), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
190 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"void stop()", asMETHOD(
SoundScriptInstance, stop), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
191 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"void kill()", asMETHOD(
SoundScriptInstance, kill), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
193 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"SoundScriptTemplateClassPtr@ getTemplate()", asMETHOD(
SoundScriptInstance, getTemplate), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
194 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"SoundClassPtr@ getStartSound()", asMETHOD(
SoundScriptInstance, getStartSound), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
195 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"SoundClassPtr@ getStopSound()", asMETHOD(
SoundScriptInstance, getStopSound), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
196 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"SoundClassPtr@ getSound(int pos)", asMETHOD(
SoundScriptInstance, getSound), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
197 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"float getStartSoundPitchgain()", asMETHOD(
SoundScriptInstance, getStartSoundPitchgain), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
198 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"float getStopSoundPitchgain()", asMETHOD(
SoundScriptInstance, getStopSoundPitchgain), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
199 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"float getSoundPitchgain(int pos)", asMETHOD(
SoundScriptInstance, getSoundPitchgain), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
200 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"int getActorInstanceId()", asMETHOD(
SoundScriptInstance, getActorInstanceId), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
201 result = engine->RegisterObjectMethod(
"SoundScriptInstanceClass",
"const string& getInstanceName()", asMETHOD(
SoundScriptInstance, getInstanceName), asCALL_THISCALL);
ROR_ASSERT(result >= 0);