Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
SoundScriptAngelscriptWrappers.h
Go to the documentation of this file.
1/*
2 This source file is part of Rigs of Rods
3 Copyright 2005-2012 Pierre-Michel Ricordel
4 Copyright 2007-2012 Thomas Fischer
5 Copyright 2013-2023 Petr Ohlidal
6
7 For more information, see http://www.rigsofrods.org/
8
9 Rigs of Rods is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License version 3, as
11 published by the Free Software Foundation.
12
13 Rigs of Rods is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20*/
21
27
28#pragma once
29
30#include "Sound.h"
31#include "SoundScriptManager.h"
32
34
35using namespace RoR;
36
37// The C++ getters return `Ptr&` (a reference), but the script declares `Ptr@`,
38// which for these handle-types (asOBJ_ASHANDLE value types) means a value returned by value.
39// These wrappers return a copy so that the C++ signature matches the script declaration.
40
45
50
55
57{
58 return self->getSound(pos);
59}
60
61} // namespace SoundScriptAngelscriptWrappers
const SoundPtr & getStopSound()
SoundScriptTemplatePtr & getTemplate()
const SoundPtr & getSound(int pos)
const SoundPtr & getStartSound()
static SoundPtr SoundScriptInstance_getStopSound(SoundScriptInstance *self)
static SoundPtr SoundScriptInstance_getSound(SoundScriptInstance *self, int pos)
static SoundScriptTemplatePtr SoundScriptInstance_getTemplate(SoundScriptInstance *self)
static SoundPtr SoundScriptInstance_getStartSound(SoundScriptInstance *self)