Skip to content

Instantly share code, notes, and snippets.

@estebanfeldman
Last active April 30, 2024 07:15
Show Gist options
  • Select an option

  • Save estebanfeldman/5846396546513486fc89cfaa069ccc2f to your computer and use it in GitHub Desktop.

Select an option

Save estebanfeldman/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; }
}
@estebanfeldman
Copy link
Copy Markdown
Author

estebanfeldman 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