TinyLifeWeb/docs/api/TinyLife.World.DrawDelegate.yml

360 lines
10 KiB
YAML
Raw Normal View History

2021-08-04 06:51:12 +02:00
### YamlMime:ManagedReference
items:
- uid: TinyLife.World.DrawDelegate
commentId: T:TinyLife.World.DrawDelegate
id: DrawDelegate
parent: TinyLife.World
children: []
langs:
- csharp
- vb
name: DrawDelegate
nameWithType: DrawDelegate
fullName: TinyLife.World.DrawDelegate
type: Delegate
source:
remote:
path: TinyLife/World/Map.cs
2023-12-06 13:25:52 +01:00
branch: main
2021-11-26 23:42:22 +01:00
repo: https://git.ellpeck.de/Ellpeck/TinyLife
2021-08-04 06:51:12 +02:00
id: DrawDelegate
2022-03-09 16:13:05 +01:00
path: ../TinyLife/World/Map.cs
2024-07-13 14:54:00 +02:00
startLine: 3057
2021-08-04 06:51:12 +02:00
assemblies:
- Tiny Life
namespace: TinyLife.World
2024-01-07 16:53:47 +01:00
summary: >-
A delegate used by events that are invoked when something is drawn.
This event has no <xref href="TinyLife.Mods.EventPhase" data-throw-if-not-resolved="false"></xref> attached to it, since drawing is done in a sorted fashion anyway.
2021-08-04 06:51:12 +02:00
example: []
syntax:
2023-03-30 18:07:55 +02:00
content: public delegate void DrawDelegate(GameTime time, object batch, Vector2 drawPos, Color? overrideColor)
2021-08-04 06:51:12 +02:00
parameters:
- id: time
2022-09-05 14:19:42 +02:00
type: Microsoft.Xna.Framework.GameTime
2024-01-07 16:53:47 +01:00
description: The game's current time
2021-08-04 06:51:12 +02:00
- id: batch
2022-09-05 14:19:42 +02:00
type: System.Object
description: The sprite batch to use for drawing, which is either a <xref href="Microsoft.Xna.Framework.Graphics.SpriteBatch" data-throw-if-not-resolved="false"></xref> or <xref href="MLEM.Graphics.StaticSpriteBatch" data-throw-if-not-resolved="false"></xref>.
2021-08-04 06:51:12 +02:00
- id: drawPos
2022-09-05 14:19:42 +02:00
type: Microsoft.Xna.Framework.Vector2
2021-08-04 06:51:12 +02:00
description: The position that the object is drawn at
- id: overrideColor
type: System.Nullable{Microsoft.Xna.Framework.Color}
description: An override color to draw the object with, or null to draw it with the default color
2022-09-05 14:19:42 +02:00
content.vb: Public Delegate Sub DrawDelegate(time As GameTime, batch As Object, drawPos As Vector2, overrideColor As Color?)
2021-08-04 06:51:12 +02:00
extensionMethods:
- TinyLife.World.DrawDelegate.TinyLife.Utilities.Extensions.JsonCopy``1
references:
- uid: TinyLife.Mods.EventPhase
commentId: T:TinyLife.Mods.EventPhase
parent: TinyLife.Mods
2024-01-07 16:53:47 +01:00
href: TinyLife.Mods.EventPhase.html
2021-08-04 06:51:12 +02:00
name: EventPhase
nameWithType: EventPhase
fullName: TinyLife.Mods.EventPhase
2022-09-05 14:19:42 +02:00
- uid: Microsoft.Xna.Framework.Graphics.SpriteBatch
commentId: T:Microsoft.Xna.Framework.Graphics.SpriteBatch
parent: Microsoft.Xna.Framework.Graphics
isExternal: true
name: SpriteBatch
nameWithType: SpriteBatch
fullName: Microsoft.Xna.Framework.Graphics.SpriteBatch
- uid: MLEM.Graphics.StaticSpriteBatch
commentId: T:MLEM.Graphics.StaticSpriteBatch
isExternal: true
2023-03-30 18:07:55 +02:00
name: StaticSpriteBatch
nameWithType: StaticSpriteBatch
fullName: MLEM.Graphics.StaticSpriteBatch
2021-08-04 06:51:12 +02:00
- uid: TinyLife.World
commentId: N:TinyLife.World
2024-01-07 16:53:47 +01:00
href: TinyLife.html
2021-08-04 06:51:12 +02: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
2021-08-04 06:51:12 +02:00
- uid: TinyLife.World.DrawDelegate.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<DrawDelegate>(DrawDelegate)
nameWithType: Extensions.JsonCopy<DrawDelegate>(DrawDelegate)
fullName: TinyLife.Utilities.Extensions.JsonCopy<TinyLife.World.DrawDelegate>(TinyLife.World.DrawDelegate)
nameWithType.vb: Extensions.JsonCopy(Of DrawDelegate)(DrawDelegate)
fullName.vb: TinyLife.Utilities.Extensions.JsonCopy(Of TinyLife.World.DrawDelegate)(TinyLife.World.DrawDelegate)
name.vb: JsonCopy(Of DrawDelegate)(DrawDelegate)
2021-08-04 06:51:12 +02:00
spec.csharp:
2023-03-30 18:07:55 +02:00
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(TinyLife.World.DrawDelegate)
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.DrawDelegate
name: DrawDelegate
2024-01-07 16:53:47 +01:00
href: TinyLife.World.DrawDelegate.html
2023-03-30 18:07:55 +02:00
- name: '>'
2021-08-04 06:51:12 +02:00
- name: (
2023-03-30 18:07:55 +02:00
- uid: TinyLife.World.DrawDelegate
name: DrawDelegate
2024-01-07 16:53:47 +01:00
href: TinyLife.World.DrawDelegate.html
2021-08-04 06:51:12 +02:00
- name: )
spec.vb:
2023-03-30 18:07:55 +02:00
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(TinyLife.World.DrawDelegate)
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.DrawDelegate
name: DrawDelegate
2024-01-07 16:53:47 +01:00
href: TinyLife.World.DrawDelegate.html
2023-03-30 18:07:55 +02:00
- name: )
2021-08-04 06:51:12 +02:00
- name: (
2023-03-30 18:07:55 +02:00
- uid: TinyLife.World.DrawDelegate
name: DrawDelegate
2024-01-07 16:53:47 +01:00
href: TinyLife.World.DrawDelegate.html
2021-08-04 06:51:12 +02:00
- name: )
2022-09-05 14:19:42 +02:00
- uid: Microsoft.Xna.Framework.GameTime
commentId: T:Microsoft.Xna.Framework.GameTime
parent: Microsoft.Xna.Framework
2021-08-04 06:51:12 +02:00
isExternal: true
name: GameTime
nameWithType: GameTime
2022-09-05 14:19:42 +02:00
fullName: Microsoft.Xna.Framework.GameTime
- uid: System.Object
commentId: T:System.Object
parent: System
2021-08-04 06:51:12 +02:00
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-09-05 14:19:42 +02:00
- uid: Microsoft.Xna.Framework.Vector2
commentId: T:Microsoft.Xna.Framework.Vector2
parent: Microsoft.Xna.Framework
2021-08-04 06:51:12 +02:00
isExternal: true
name: Vector2
nameWithType: Vector2
2022-09-05 14:19:42 +02:00
fullName: Microsoft.Xna.Framework.Vector2
2021-08-04 06:51:12 +02:00
- uid: System.Nullable{Microsoft.Xna.Framework.Color}
commentId: T:System.Nullable{Microsoft.Xna.Framework.Color}
parent: System
definition: System.Nullable`1
2023-03-30 18:07:55 +02:00
name: Color?
nameWithType: Color?
fullName: Microsoft.Xna.Framework.Color?
2021-08-04 06:51:12 +02:00
spec.csharp:
- uid: Microsoft.Xna.Framework.Color
name: Color
isExternal: true
2023-03-30 18:07:55 +02:00
- name: '?'
2021-08-04 06:51:12 +02:00
spec.vb:
- uid: Microsoft.Xna.Framework.Color
name: Color
isExternal: true
2023-03-30 18:07:55 +02:00
- name: '?'
2021-08-04 06:51:12 +02:00
- uid: TinyLife.Mods
commentId: N:TinyLife.Mods
2024-01-07 16:53:47 +01:00
href: TinyLife.html
2021-08-04 06:51:12 +02:00
name: TinyLife.Mods
nameWithType: TinyLife.Mods
fullName: TinyLife.Mods
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.Mods
name: Mods
2024-01-07 16:53:47 +01:00
href: TinyLife.Mods.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.Mods
name: Mods
2024-01-07 16:53:47 +01:00
href: TinyLife.Mods.html
2022-09-05 14:19:42 +02:00
- uid: Microsoft.Xna.Framework.Graphics
commentId: N:Microsoft.Xna.Framework.Graphics
isExternal: true
name: Microsoft.Xna.Framework.Graphics
nameWithType: Microsoft.Xna.Framework.Graphics
fullName: Microsoft.Xna.Framework.Graphics
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.Graphics
name: Graphics
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.Graphics
name: Graphics
isExternal: true
2021-08-04 06:51:12 +02: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_
2021-08-04 06:51:12 +02: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: '>'
2021-08-04 06:51:12 +02: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: )
2021-08-04 06:51:12 +02: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
2021-08-04 06:51:12 +02: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-09-05 14:19:42 +02: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-09-05 14:19:42 +02:00
name: System
nameWithType: System
fullName: System
2021-08-04 06:51:12 +02:00
- uid: System.Nullable`1
commentId: T:System.Nullable`1
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.nullable-1
2021-08-04 06:51:12 +02:00
name: Nullable<T>
nameWithType: Nullable<T>
fullName: System.Nullable<T>
nameWithType.vb: Nullable(Of T)
fullName.vb: System.Nullable(Of T)
name.vb: Nullable(Of T)
spec.csharp:
- uid: System.Nullable`1
name: Nullable
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.nullable-1
2021-08-04 06:51:12 +02:00
- name: <
- name: T
- name: '>'
spec.vb:
- uid: System.Nullable`1
name: Nullable
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.nullable-1
- name: (
- name: Of
- name: " "
2021-08-04 06:51:12 +02:00
- name: T
- name: )
- uid: TinyLife.Utilities
commentId: N:TinyLife.Utilities
2024-01-07 16:53:47 +01:00
href: TinyLife.html
2021-08-04 06:51:12 +02: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