diff options
author | chai <chaifix@163.com> | 2019-01-31 09:06:15 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-01-31 09:06:15 +0800 |
commit | c581dfbf1e849f393861d15e82aa6446c0c1c310 (patch) | |
tree | 2df779ba98acdd04a4b52f6bff0de143dfba4600 /Source/Asura.Framework/scripts/audio | |
parent | fc1713e9df3ae8db6e612610023e7bd5f6b6f5fe (diff) |
*misc
Diffstat (limited to 'Source/Asura.Framework/scripts/audio')
-rw-r--r-- | Source/Asura.Framework/scripts/audio/sound.lua | 9 | ||||
-rw-r--r-- | Source/Asura.Framework/scripts/audio/source.lua | 22 |
2 files changed, 31 insertions, 0 deletions
diff --git a/Source/Asura.Framework/scripts/audio/sound.lua b/Source/Asura.Framework/scripts/audio/sound.lua new file mode 100644 index 0000000..71def66 --- /dev/null +++ b/Source/Asura.Framework/scripts/audio/sound.lua @@ -0,0 +1,9 @@ +AsuraEngine.Sound = AsuraEngine.Asset.Sub("Sound") + +local Sound = AsuraEngine.Sound + +function Sound.Ctor(self) + +end + +return Sound
\ No newline at end of file diff --git a/Source/Asura.Framework/scripts/audio/source.lua b/Source/Asura.Framework/scripts/audio/source.lua new file mode 100644 index 0000000..ccbc946 --- /dev/null +++ b/Source/Asura.Framework/scripts/audio/source.lua @@ -0,0 +1,22 @@ +-- Audio Source +AsuraEngine.Source = AsuraEngine.Component.Sub("SoundPlayer") + +local Source = AsuraEngine.Source + +function Source.Ctor(self) + self.mSound = nil +end + +function Source.SetSound(sound) + self.mSound = sound +end + +function Source.GetSource() + return self.mSound +end + +function Source.OnUpdate(dt) + +end + +return Source
\ No newline at end of file |