TinyLifeWeb/docs/api/TinyLife.World.Soundscape.IntensityDelegate.yml

235 lines
7.3 KiB
YAML
Raw Normal View History

2022-01-01 17:06:03 +01:00
### YamlMime:ManagedReference
items:
- uid: TinyLife.World.Soundscape.IntensityDelegate
commentId: T:TinyLife.World.Soundscape.IntensityDelegate
id: Soundscape.IntensityDelegate
parent: TinyLife.World
children: []
langs:
- csharp
- vb
name: Soundscape.IntensityDelegate
nameWithType: Soundscape.IntensityDelegate
fullName: TinyLife.World.Soundscape.IntensityDelegate
type: Delegate
source:
remote:
path: TinyLife/World/Soundscape.cs
2023-12-06 13:25:52 +01:00
branch: main
2022-01-01 17:06:03 +01:00
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: IntensityDelegate
2022-03-09 16:13:05 +01:00
path: ../TinyLife/World/Soundscape.cs
2024-07-09 18:54:47 +02:00
startLine: 142
2022-01-01 17:06:03 +01:00
assemblies:
- Tiny Life
namespace: TinyLife.World
2024-01-07 16:53:47 +01:00
summary: >-
A delegate method used by <xref href="TinyLife.World.Soundscape" data-throw-if-not-resolved="false"></xref> to determine the volume that an ambient sound should have.
The returned volume should be between 0 and 1, where 0 means the soundscape will not be played at all.
2022-01-01 17:06:03 +01:00
example: []
syntax:
2023-03-30 18:07:55 +02:00
content: public delegate float Soundscape.IntensityDelegate(Map map, Vector2 cameraWorldPos)
2022-01-01 17:06:03 +01:00
parameters:
- id: map
type: TinyLife.World.Map
- id: cameraWorldPos
2022-09-05 14:19:42 +02:00
type: Microsoft.Xna.Framework.Vector2
2022-01-01 17:06:03 +01:00
return:
type: System.Single
2023-03-30 18:07:55 +02:00
content.vb: Public Delegate Function Soundscape.IntensityDelegate(map As Map, cameraWorldPos As Vector2) As Single
2022-01-01 17:06:03 +01:00
extensionMethods:
- TinyLife.World.Soundscape.IntensityDelegate.TinyLife.Utilities.Extensions.JsonCopy``1
references:
- uid: TinyLife.World.Soundscape
commentId: T:TinyLife.World.Soundscape
2024-01-07 16:53:47 +01:00
href: TinyLife.World.Soundscape.html
2022-01-01 17:06:03 +01:00
name: Soundscape
nameWithType: Soundscape
fullName: TinyLife.World.Soundscape
- uid: TinyLife.World
commentId: N:TinyLife.World
2024-01-07 16:53:47 +01:00
href: TinyLife.html
2022-01-01 17:06:03 +01:00
name: TinyLife.World
nameWithType: TinyLife.World
fullName: TinyLife.World
2023-03-30 18:07:55 +02:00
spec.csharp:
- uid: TinyLife
name: TinyLife
2024-01-07 16:53:47 +01:00
href: TinyLife.html
2023-03-30 18:07:55 +02:00
- name: .
- uid: TinyLife.World
name: World
2024-01-07 16:53:47 +01:00
href: TinyLife.World.html
2023-03-30 18:07:55 +02:00
spec.vb:
- uid: TinyLife
name: TinyLife
2024-01-07 16:53:47 +01:00
href: TinyLife.html
2023-03-30 18:07:55 +02:00
- name: .
- uid: TinyLife.World
name: World
2024-01-07 16:53:47 +01:00
href: TinyLife.World.html
2022-01-01 17:06:03 +01:00
- uid: TinyLife.World.Soundscape.IntensityDelegate.TinyLife.Utilities.Extensions.JsonCopy``1
commentId: M:TinyLife.Utilities.Extensions.JsonCopy``1(``0)
parent: TinyLife.Utilities.Extensions
definition: TinyLife.Utilities.Extensions.JsonCopy``1(``0)
2024-01-07 16:53:47 +01:00
href: TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
2023-03-30 18:07:55 +02:00
name: JsonCopy<IntensityDelegate>(IntensityDelegate)
nameWithType: Extensions.JsonCopy<Soundscape.IntensityDelegate>(Soundscape.IntensityDelegate)
fullName: TinyLife.Utilities.Extensions.JsonCopy<TinyLife.World.Soundscape.IntensityDelegate>(TinyLife.World.Soundscape.IntensityDelegate)
nameWithType.vb: Extensions.JsonCopy(Of Soundscape.IntensityDelegate)(Soundscape.IntensityDelegate)
fullName.vb: TinyLife.Utilities.Extensions.JsonCopy(Of TinyLife.World.Soundscape.IntensityDelegate)(TinyLife.World.Soundscape.IntensityDelegate)
name.vb: JsonCopy(Of IntensityDelegate)(IntensityDelegate)
2022-01-01 17:06:03 +01:00
spec.csharp:
2023-03-30 18:07:55 +02:00
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(TinyLife.World.Soundscape.IntensityDelegate)
name: JsonCopy
2024-01-07 16:53:47 +01:00
href: TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
2023-03-30 18:07:55 +02:00
- name: <
- uid: TinyLife.World.Soundscape.IntensityDelegate
name: IntensityDelegate
2024-01-07 16:53:47 +01:00
href: TinyLife.World.Soundscape.IntensityDelegate.html
2023-03-30 18:07:55 +02:00
- name: '>'
2022-01-01 17:06:03 +01:00
- name: (
2023-03-30 18:07:55 +02:00
- uid: TinyLife.World.Soundscape.IntensityDelegate
name: IntensityDelegate
2024-01-07 16:53:47 +01:00
href: TinyLife.World.Soundscape.IntensityDelegate.html
2022-01-01 17:06:03 +01:00
- name: )
spec.vb:
2023-03-30 18:07:55 +02:00
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(TinyLife.World.Soundscape.IntensityDelegate)
name: JsonCopy
2024-01-07 16:53:47 +01:00
href: TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
2023-03-30 18:07:55 +02:00
- name: (
- name: Of
- name: " "
- uid: TinyLife.World.Soundscape.IntensityDelegate
name: IntensityDelegate
2024-01-07 16:53:47 +01:00
href: TinyLife.World.Soundscape.IntensityDelegate.html
2023-03-30 18:07:55 +02:00
- name: )
2022-01-01 17:06:03 +01:00
- name: (
2023-03-30 18:07:55 +02:00
- uid: TinyLife.World.Soundscape.IntensityDelegate
name: IntensityDelegate
2024-01-07 16:53:47 +01:00
href: TinyLife.World.Soundscape.IntensityDelegate.html
2022-01-01 17:06:03 +01:00
- name: )
- uid: TinyLife.World.Map
commentId: T:TinyLife.World.Map
parent: TinyLife.World
2024-01-07 16:53:47 +01:00
href: TinyLife.World.Map.html
2022-01-01 17:06:03 +01:00
name: Map
nameWithType: Map
fullName: TinyLife.World.Map
2022-09-05 14:19:42 +02:00
- uid: Microsoft.Xna.Framework.Vector2
commentId: T:Microsoft.Xna.Framework.Vector2
parent: Microsoft.Xna.Framework
2022-01-01 17:06:03 +01:00
isExternal: true
name: Vector2
nameWithType: Vector2
2022-09-05 14:19:42 +02:00
fullName: Microsoft.Xna.Framework.Vector2
2022-01-01 17:06:03 +01:00
- uid: System.Single
commentId: T:System.Single
parent: System
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.single
name: float
nameWithType: float
fullName: float
nameWithType.vb: Single
fullName.vb: Single
name.vb: Single
2022-01-01 17:06:03 +01:00
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(``0)
commentId: M:TinyLife.Utilities.Extensions.JsonCopy``1(``0)
2024-01-07 16:53:47 +01:00
href: TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
2022-01-01 17:06:03 +01:00
name: JsonCopy<T>(T)
nameWithType: Extensions.JsonCopy<T>(T)
fullName: TinyLife.Utilities.Extensions.JsonCopy<T>(T)
nameWithType.vb: Extensions.JsonCopy(Of T)(T)
fullName.vb: TinyLife.Utilities.Extensions.JsonCopy(Of T)(T)
name.vb: JsonCopy(Of T)(T)
spec.csharp:
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(``0)
2023-03-30 18:07:55 +02:00
name: JsonCopy
2024-01-07 16:53:47 +01:00
href: TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
2023-03-30 18:07:55 +02:00
- name: <
- name: T
- name: '>'
2022-01-01 17:06:03 +01:00
- name: (
- name: T
- name: )
spec.vb:
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(``0)
2023-03-30 18:07:55 +02:00
name: JsonCopy
2024-01-07 16:53:47 +01:00
href: TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
2023-03-30 18:07:55 +02:00
- name: (
- name: Of
- name: " "
- name: T
- name: )
2022-01-01 17:06:03 +01:00
- name: (
- name: T
- name: )
- uid: TinyLife.Utilities.Extensions
commentId: T:TinyLife.Utilities.Extensions
parent: TinyLife.Utilities
2024-01-07 16:53:47 +01:00
href: TinyLife.Utilities.Extensions.html
2022-01-01 17:06:03 +01:00
name: Extensions
nameWithType: Extensions
fullName: TinyLife.Utilities.Extensions
2022-09-05 14:19:42 +02:00
- uid: Microsoft.Xna.Framework
commentId: N:Microsoft.Xna.Framework
isExternal: true
name: Microsoft.Xna.Framework
nameWithType: Microsoft.Xna.Framework
fullName: Microsoft.Xna.Framework
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
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
2022-01-01 17:06:03 +01:00
- uid: System
commentId: N:System
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system
2022-01-01 17:06:03 +01:00
name: System
nameWithType: System
fullName: System
- uid: TinyLife.Utilities
commentId: N:TinyLife.Utilities
2024-01-07 16:53:47 +01:00
href: TinyLife.html
2022-01-01 17:06:03 +01:00
name: TinyLife.Utilities
nameWithType: TinyLife.Utilities
fullName: TinyLife.Utilities
2023-03-30 18:07:55 +02:00
spec.csharp:
- uid: TinyLife
name: TinyLife
2024-01-07 16:53:47 +01:00
href: TinyLife.html
2023-03-30 18:07:55 +02:00
- name: .
- uid: TinyLife.Utilities
name: Utilities
2024-01-07 16:53:47 +01:00
href: TinyLife.Utilities.html
2023-03-30 18:07:55 +02:00
spec.vb:
- uid: TinyLife
name: TinyLife
2024-01-07 16:53:47 +01:00
href: TinyLife.html
2023-03-30 18:07:55 +02:00
- name: .
- uid: TinyLife.Utilities
name: Utilities
2024-01-07 16:53:47 +01:00
href: TinyLife.Utilities.html