Skip to content

Instantly share code, notes, and snippets.

@eka
Last active April 30, 2024 07:15
Show Gist options
  • Save eka/5846396546513486fc89cfaa069ccc2f to your computer and use it in GitHub Desktop.
Save eka/5846396546513486fc89cfaa069ccc2f to your computer and use it in GitHub Desktop.
Resource for cllients to play sounds and send to the AudioManager via GameEventsManager
using System.Linq;
using Godot;
using Godot.Collections;
public partial class SoundResource : Resource
{
[Export] public string Id { get; set; }
[Export] public AudioStream AudioStream { get; set; }
}
@eka
Copy link
Author

eka commented Apr 30, 2024

[Tool] is not necessary, is a left over

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment