-- DOMINO REFLECTION BOX START
|
|
--
|
|
-- <Display Category="Sound" Text="Set Sound Variable Value"/>
|
|
--
|
|
-- <ContextHelp><![CDATA[
|
|
-- Sets a value to a Sound Variable.
|
|
-- If the Sound Variable is of type "Integer", use SetIntValue
|
|
-- If the Sound Variable is of type "Float", use SetFloatValue
|
|
-- SoundVarId is the variable's ID from Dare, in decimal format.
|
|
-- ]]></ContextHelp>
|
|
|
|
-- <ControlIn Name="SetIntValue">
|
|
-- <LinkRule>
|
|
-- <Target anchor="SoundVarId"/>
|
|
-- <Target anchor="IntValue"/>
|
|
-- </LinkRule>
|
|
-- </ControlIn>
|
|
-- <ControlIn Name="SetFloatValue">
|
|
-- <LinkRule>
|
|
-- <Target anchor="SoundVarId"/>
|
|
-- <Target anchor="FloatValue"/>
|
|
-- </LinkRule>
|
|
-- </ControlIn>
|
|
--
|
|
-- <ControlOut Name="Out"/>
|
|
--
|
|
-- <DataIn Name="SoundVarId" Type="Core|int"/>
|
|
-- <DataIn Name="IntValue" Type="Core|int"/>
|
|
-- <DataIn Name="FloatValue" Type="Core|float"/>
|
|
--
|
|
-- DOMINO REFLECTION BOX END
|
|
|
|
SoundVarValue = {
|
|
};
|
|
|
|
function SoundVarValue:Create(cbox)
|
|
-- left empty on purpose
|
|
end
|
|
|
|
function SoundVarValue:Init(cbox)
|
|
end
|
|
|
|
function SoundVarValue:ShutDown()
|
|
end
|
|
|
|
function SoundVarValue:SetIntValue()
|
|
SetSoundVarIdIntValue(self.SoundVarId, self.IntValue);
|
|
self:Out();
|
|
end
|
|
|
|
function SoundVarValue:SetFloatValue()
|
|
SetSoundVarIdFloatValue(self.SoundVarId, self.FloatValue);
|
|
self:Out();
|
|
end
|
|
|
|
|
|
export = SoundVarValue;
|
|
SoundVarValue = nil;
|