TinyLifeWeb/docs/api/TinyLife.Music.yml

443 lines
14 KiB
YAML
Raw Permalink Normal View History

2022-10-18 13:03:11 +02:00
### YamlMime:ManagedReference
items:
- uid: TinyLife.Music
commentId: T:TinyLife.Music
id: Music
parent: TinyLife
children:
- TinyLife.Music.Register(Microsoft.Xna.Framework.Media.Song,TinyLife.Music.Occasion[])
langs:
- csharp
- vb
name: Music
nameWithType: Music
fullName: TinyLife.Music
type: Class
source:
remote:
path: TinyLife/Music.cs
2023-03-30 18:07:55 +02:00
branch: main
2022-10-18 13:03:11 +02:00
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Music
path: ../TinyLife/Music.cs
startLine: 15
assemblies:
- Tiny Life
namespace: TinyLife
summary: "\nThis class handles the game&apos;s in-game music. To register new music tracks for being selected, use <xref href=\"TinyLife.Music.Register(Microsoft.Xna.Framework.Media.Song%2cTinyLife.Music.Occasion%5b%5d)\" data-throw-if-not-resolved=\"false\"></xref>.\n"
example: []
syntax:
content: public static class Music
content.vb: Public Module Music
inheritance:
- System.Object
inheritedMembers:
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object,System.Object)
- System.Object.GetHashCode
- System.Object.GetType
- System.Object.MemberwiseClone
- System.Object.ReferenceEquals(System.Object,System.Object)
- System.Object.ToString
- uid: TinyLife.Music.Register(Microsoft.Xna.Framework.Media.Song,TinyLife.Music.Occasion[])
commentId: M:TinyLife.Music.Register(Microsoft.Xna.Framework.Media.Song,TinyLife.Music.Occasion[])
id: Register(Microsoft.Xna.Framework.Media.Song,TinyLife.Music.Occasion[])
parent: TinyLife.Music
langs:
- csharp
- vb
2023-03-30 18:07:55 +02:00
name: Register(Song, params Occasion[])
nameWithType: Music.Register(Song, params Music.Occasion[])
fullName: TinyLife.Music.Register(Microsoft.Xna.Framework.Media.Song, params TinyLife.Music.Occasion[])
2022-10-18 13:03:11 +02:00
type: Method
source:
remote:
path: TinyLife/Music.cs
2023-03-30 18:07:55 +02:00
branch: main
2022-10-18 13:03:11 +02:00
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Register
path: ../TinyLife/Music.cs
2023-01-16 12:24:01 +01:00
startLine: 44
2022-10-18 13:03:11 +02:00
assemblies:
- Tiny Life
namespace: TinyLife
summary: "\nRegisters a new music track to be played at the given <code data-dev-comment-type=\"paramref\" class=\"paramref\">occasions</code>.\nThe music track will be added to the music pool and randomly selected for playing.\n"
example: []
syntax:
content: public static void Register(Song song, params Music.Occasion[] occasions)
parameters:
- id: song
type: Microsoft.Xna.Framework.Media.Song
description: The song to play.
- id: occasions
type: TinyLife.Music.Occasion[]
description: The occasions that this song should be allowed to play on.
content.vb: Public Shared Sub Register(song As Song, ParamArray occasions As Music.Occasion())
overload: TinyLife.Music.Register*
exceptions:
- type: System.ArgumentException
commentId: T:System.ArgumentException
description: Thrown if <code data-dev-comment-type="paramref" class="paramref">occasions</code> is empty.
2023-03-30 18:07:55 +02:00
nameWithType.vb: Music.Register(Song, ParamArray Music.Occasion())
fullName.vb: TinyLife.Music.Register(Microsoft.Xna.Framework.Media.Song, ParamArray TinyLife.Music.Occasion())
name.vb: Register(Song, ParamArray Occasion())
2022-10-18 13:03:11 +02:00
references:
- uid: TinyLife.Music.Register(Microsoft.Xna.Framework.Media.Song,TinyLife.Music.Occasion[])
commentId: M:TinyLife.Music.Register(Microsoft.Xna.Framework.Media.Song,TinyLife.Music.Occasion[])
isExternal: true
2023-03-30 18:07:55 +02:00
name: Register(Song, params Occasion[])
nameWithType: Music.Register(Song, params Music.Occasion[])
fullName: TinyLife.Music.Register(Microsoft.Xna.Framework.Media.Song, params TinyLife.Music.Occasion[])
nameWithType.vb: Music.Register(Song, ParamArray Music.Occasion())
fullName.vb: TinyLife.Music.Register(Microsoft.Xna.Framework.Media.Song, ParamArray TinyLife.Music.Occasion())
name.vb: Register(Song, ParamArray Occasion())
spec.csharp:
- uid: TinyLife.Music.Register(Microsoft.Xna.Framework.Media.Song,TinyLife.Music.Occasion[])
name: Register
- name: (
- uid: Microsoft.Xna.Framework.Media.Song
name: Song
isExternal: true
- name: ','
- name: " "
- name: params
- name: " "
- uid: TinyLife.Music.Occasion
name: Occasion
- name: '['
- name: ']'
- name: )
spec.vb:
- uid: TinyLife.Music.Register(Microsoft.Xna.Framework.Media.Song,TinyLife.Music.Occasion[])
name: Register
- name: (
- uid: Microsoft.Xna.Framework.Media.Song
name: Song
isExternal: true
- name: ','
- name: " "
- name: ParamArray
- name: " "
- uid: TinyLife.Music.Occasion
name: Occasion
- name: (
- name: )
- name: )
2022-10-18 13:03:11 +02:00
- uid: TinyLife
commentId: N:TinyLife
name: TinyLife
nameWithType: TinyLife
fullName: TinyLife
- uid: System.Object
commentId: T:System.Object
parent: System
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
name: object
nameWithType: object
fullName: object
nameWithType.vb: Object
fullName.vb: Object
name.vb: Object
2022-10-18 13:03:11 +02:00
- uid: System.Object.Equals(System.Object)
commentId: M:System.Object.Equals(System.Object)
parent: System.Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
name: Equals(object)
nameWithType: object.Equals(object)
fullName: object.Equals(object)
nameWithType.vb: Object.Equals(Object)
fullName.vb: Object.Equals(Object)
name.vb: Equals(Object)
2022-10-18 13:03:11 +02:00
spec.csharp:
- uid: System.Object.Equals(System.Object)
name: Equals
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
2022-10-18 13:03:11 +02:00
- name: (
- uid: System.Object
2023-03-30 18:07:55 +02:00
name: object
2022-10-18 13:03:11 +02:00
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
2022-10-18 13:03:11 +02:00
- name: )
spec.vb:
- uid: System.Object.Equals(System.Object)
name: Equals
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
2022-10-18 13:03:11 +02:00
- name: (
- uid: System.Object
name: Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
2022-10-18 13:03:11 +02:00
- name: )
- uid: System.Object.Equals(System.Object,System.Object)
commentId: M:System.Object.Equals(System.Object,System.Object)
parent: System.Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
name: Equals(object, object)
nameWithType: object.Equals(object, object)
fullName: object.Equals(object, object)
nameWithType.vb: Object.Equals(Object, Object)
fullName.vb: Object.Equals(Object, Object)
name.vb: Equals(Object, Object)
2022-10-18 13:03:11 +02:00
spec.csharp:
- uid: System.Object.Equals(System.Object,System.Object)
name: Equals
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
2022-10-18 13:03:11 +02:00
- name: (
- uid: System.Object
2023-03-30 18:07:55 +02:00
name: object
2022-10-18 13:03:11 +02:00
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
2022-10-18 13:03:11 +02:00
- uid: System.Object
2023-03-30 18:07:55 +02:00
name: object
2022-10-18 13:03:11 +02:00
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
2022-10-18 13:03:11 +02:00
- name: )
spec.vb:
- uid: System.Object.Equals(System.Object,System.Object)
name: Equals
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
2022-10-18 13:03:11 +02:00
- name: (
- uid: System.Object
name: Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
2022-10-18 13:03:11 +02:00
- uid: System.Object
name: Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
2022-10-18 13:03:11 +02:00
- name: )
- uid: System.Object.GetHashCode
commentId: M:System.Object.GetHashCode
parent: System.Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
2022-10-18 13:03:11 +02:00
name: GetHashCode()
2023-03-30 18:07:55 +02:00
nameWithType: object.GetHashCode()
fullName: object.GetHashCode()
nameWithType.vb: Object.GetHashCode()
fullName.vb: Object.GetHashCode()
2022-10-18 13:03:11 +02:00
spec.csharp:
- uid: System.Object.GetHashCode
name: GetHashCode
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
2022-10-18 13:03:11 +02:00
- name: (
- name: )
spec.vb:
- uid: System.Object.GetHashCode
name: GetHashCode
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
2022-10-18 13:03:11 +02:00
- name: (
- name: )
- uid: System.Object.GetType
commentId: M:System.Object.GetType
parent: System.Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
2022-10-18 13:03:11 +02:00
name: GetType()
2023-03-30 18:07:55 +02:00
nameWithType: object.GetType()
fullName: object.GetType()
nameWithType.vb: Object.GetType()
fullName.vb: Object.GetType()
2022-10-18 13:03:11 +02:00
spec.csharp:
- uid: System.Object.GetType
name: GetType
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
2022-10-18 13:03:11 +02:00
- name: (
- name: )
spec.vb:
- uid: System.Object.GetType
name: GetType
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
2022-10-18 13:03:11 +02:00
- name: (
- name: )
- uid: System.Object.MemberwiseClone
commentId: M:System.Object.MemberwiseClone
parent: System.Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
2022-10-18 13:03:11 +02:00
name: MemberwiseClone()
2023-03-30 18:07:55 +02:00
nameWithType: object.MemberwiseClone()
fullName: object.MemberwiseClone()
nameWithType.vb: Object.MemberwiseClone()
fullName.vb: Object.MemberwiseClone()
2022-10-18 13:03:11 +02:00
spec.csharp:
- uid: System.Object.MemberwiseClone
name: MemberwiseClone
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
2022-10-18 13:03:11 +02:00
- name: (
- name: )
spec.vb:
- uid: System.Object.MemberwiseClone
name: MemberwiseClone
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
2022-10-18 13:03:11 +02:00
- name: (
- name: )
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
commentId: M:System.Object.ReferenceEquals(System.Object,System.Object)
parent: System.Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
name: ReferenceEquals(object, object)
nameWithType: object.ReferenceEquals(object, object)
fullName: object.ReferenceEquals(object, object)
nameWithType.vb: Object.ReferenceEquals(Object, Object)
fullName.vb: Object.ReferenceEquals(Object, Object)
name.vb: ReferenceEquals(Object, Object)
2022-10-18 13:03:11 +02:00
spec.csharp:
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
name: ReferenceEquals
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
2022-10-18 13:03:11 +02:00
- name: (
- uid: System.Object
2023-03-30 18:07:55 +02:00
name: object
2022-10-18 13:03:11 +02:00
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
2022-10-18 13:03:11 +02:00
- uid: System.Object
2023-03-30 18:07:55 +02:00
name: object
2022-10-18 13:03:11 +02:00
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
2022-10-18 13:03:11 +02:00
- name: )
spec.vb:
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
name: ReferenceEquals
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
2022-10-18 13:03:11 +02:00
- name: (
- uid: System.Object
name: Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
2022-10-18 13:03:11 +02:00
- uid: System.Object
name: Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
2022-10-18 13:03:11 +02:00
- name: )
- uid: System.Object.ToString
commentId: M:System.Object.ToString
parent: System.Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
2022-10-18 13:03:11 +02:00
name: ToString()
2023-03-30 18:07:55 +02:00
nameWithType: object.ToString()
fullName: object.ToString()
nameWithType.vb: Object.ToString()
fullName.vb: Object.ToString()
2022-10-18 13:03:11 +02:00
spec.csharp:
- uid: System.Object.ToString
name: ToString
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
2022-10-18 13:03:11 +02:00
- name: (
- name: )
spec.vb:
- uid: System.Object.ToString
name: ToString
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
2022-10-18 13:03:11 +02:00
- name: (
- name: )
- uid: System
commentId: N:System
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system
2022-10-18 13:03:11 +02:00
name: System
nameWithType: System
fullName: System
- uid: System.ArgumentException
commentId: T:System.ArgumentException
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.argumentexception
name: ArgumentException
nameWithType: ArgumentException
fullName: System.ArgumentException
2022-10-18 13:03:11 +02:00
- uid: TinyLife.Music.Register*
commentId: Overload:TinyLife.Music.Register
name: Register
nameWithType: Music.Register
fullName: TinyLife.Music.Register
- uid: Microsoft.Xna.Framework.Media.Song
commentId: T:Microsoft.Xna.Framework.Media.Song
parent: Microsoft.Xna.Framework.Media
isExternal: true
name: Song
nameWithType: Song
fullName: Microsoft.Xna.Framework.Media.Song
- uid: TinyLife.Music.Occasion[]
isExternal: true
2023-03-30 18:07:55 +02:00
name: Occasion[]
2022-10-18 13:03:11 +02:00
nameWithType: Music.Occasion[]
fullName: TinyLife.Music.Occasion[]
nameWithType.vb: Music.Occasion()
fullName.vb: TinyLife.Music.Occasion()
2023-03-30 18:07:55 +02:00
name.vb: Occasion()
2022-10-18 13:03:11 +02:00
spec.csharp:
- uid: TinyLife.Music.Occasion
2023-03-30 18:07:55 +02:00
name: Occasion
- name: '['
- name: ']'
2022-10-18 13:03:11 +02:00
spec.vb:
- uid: TinyLife.Music.Occasion
2023-03-30 18:07:55 +02:00
name: Occasion
- name: (
- name: )
2022-10-18 13:03:11 +02:00
- uid: Microsoft.Xna.Framework.Media
commentId: N:Microsoft.Xna.Framework.Media
isExternal: true
name: Microsoft.Xna.Framework.Media
nameWithType: Microsoft.Xna.Framework.Media
fullName: Microsoft.Xna.Framework.Media
2023-03-30 18:07:55 +02:00
spec.csharp:
- uid: Microsoft
name: Microsoft
isExternal: true
- name: .
- uid: Microsoft.Xna
name: Xna
isExternal: true
- name: .
- uid: Microsoft.Xna.Framework
name: Framework
isExternal: true
- name: .
- uid: Microsoft.Xna.Framework.Media
name: Media
isExternal: true
spec.vb:
- uid: Microsoft
name: Microsoft
isExternal: true
- name: .
- uid: Microsoft.Xna
name: Xna
isExternal: true
- name: .
- uid: Microsoft.Xna.Framework
name: Framework
isExternal: true
- name: .
- uid: Microsoft.Xna.Framework.Media
name: Media
isExternal: true