SiliconGhetto Engine API
    Preparing search index...

    Function createSoundAPI

    • Returns {
          get _nameMap(): Record<string, number>;
          _custom: Record<string, number>;
          _customId: number;
          play(name: string): void;
          register(name: string): void;
      }

      • get _nameMap(): Record<string, number>
      • _custom: Record<string, number>
      • _customId: number
      • play: function
        • Play a sound effect by name.

          Parameters

          • name: string

            Sound name (built-in: "zombie", "death", "explode", "eat", or a custom registered name)

          Returns void

      • register: function
        • Register a custom sound name for use with play() and mob sounds.

          Parameters

          • name: string

            Unique sound name to register

          Returns void