1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-14 10:09:09 +01:00
MLEM/Docs/api/MLEM.Misc.AutoTiling.yml

564 lines
20 KiB
YAML

### YamlMime:ManagedReference
items:
- uid: MLEM.Misc.AutoTiling
commentId: T:MLEM.Misc.AutoTiling
id: AutoTiling
parent: MLEM.Misc
children:
- MLEM.Misc.AutoTiling.DrawAutoTile(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.Texture2D,Microsoft.Xna.Framework.Rectangle,MLEM.Misc.AutoTiling.ConnectsTo,Microsoft.Xna.Framework.Color,System.Single,System.Nullable{Microsoft.Xna.Framework.Vector2},System.Nullable{Microsoft.Xna.Framework.Vector2},System.Single)
langs:
- csharp
- vb
name: AutoTiling
nameWithType: AutoTiling
fullName: MLEM.Misc.AutoTiling
type: Class
source:
remote:
path: MLEM/Misc/AutoTiling.cs
branch: master
repo: https://github.com/Ellpeck/MLEM
id: AutoTiling
path: ../MLEM/Misc/AutoTiling.cs
startLine: 8
assemblies:
- MLEM
namespace: MLEM.Misc
summary: "\nThis class contains a <xref href=\"MLEM.Misc.AutoTiling.DrawAutoTile(Microsoft.Xna.Framework.Graphics.SpriteBatch%2cMicrosoft.Xna.Framework.Vector2%2cMicrosoft.Xna.Framework.Graphics.Texture2D%2cMicrosoft.Xna.Framework.Rectangle%2cMLEM.Misc.AutoTiling.ConnectsTo%2cMicrosoft.Xna.Framework.Color%2cSystem.Single%2cSystem.Nullable%7bMicrosoft.Xna.Framework.Vector2%7d%2cSystem.Nullable%7bMicrosoft.Xna.Framework.Vector2%7d%2cSystem.Single)\" data-throw-if-not-resolved=\"false\"></xref> method that allows users to easily draw a tile with automatic connections.\nFor auto-tiling in this manner to work, auto-tiled textures have to be laid out in a format described in <xref href=\"MLEM.Misc.AutoTiling.DrawAutoTile(Microsoft.Xna.Framework.Graphics.SpriteBatch%2cMicrosoft.Xna.Framework.Vector2%2cMicrosoft.Xna.Framework.Graphics.Texture2D%2cMicrosoft.Xna.Framework.Rectangle%2cMLEM.Misc.AutoTiling.ConnectsTo%2cMicrosoft.Xna.Framework.Color%2cSystem.Single%2cSystem.Nullable%7bMicrosoft.Xna.Framework.Vector2%7d%2cSystem.Nullable%7bMicrosoft.Xna.Framework.Vector2%7d%2cSystem.Single)\" data-throw-if-not-resolved=\"false\"></xref>.\n"
example: []
syntax:
content: public class AutoTiling
content.vb: Public Class AutoTiling
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
modifiers.csharp:
- public
- class
modifiers.vb:
- Public
- Class
- uid: MLEM.Misc.AutoTiling.DrawAutoTile(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.Texture2D,Microsoft.Xna.Framework.Rectangle,MLEM.Misc.AutoTiling.ConnectsTo,Microsoft.Xna.Framework.Color,System.Single,System.Nullable{Microsoft.Xna.Framework.Vector2},System.Nullable{Microsoft.Xna.Framework.Vector2},System.Single)
commentId: M:MLEM.Misc.AutoTiling.DrawAutoTile(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.Texture2D,Microsoft.Xna.Framework.Rectangle,MLEM.Misc.AutoTiling.ConnectsTo,Microsoft.Xna.Framework.Color,System.Single,System.Nullable{Microsoft.Xna.Framework.Vector2},System.Nullable{Microsoft.Xna.Framework.Vector2},System.Single)
id: DrawAutoTile(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.Texture2D,Microsoft.Xna.Framework.Rectangle,MLEM.Misc.AutoTiling.ConnectsTo,Microsoft.Xna.Framework.Color,System.Single,System.Nullable{Microsoft.Xna.Framework.Vector2},System.Nullable{Microsoft.Xna.Framework.Vector2},System.Single)
parent: MLEM.Misc.AutoTiling
langs:
- csharp
- vb
name: DrawAutoTile(SpriteBatch, Vector2, Texture2D, Rectangle, AutoTiling.ConnectsTo, Color, Single, Nullable<Vector2>, Nullable<Vector2>, Single)
nameWithType: AutoTiling.DrawAutoTile(SpriteBatch, Vector2, Texture2D, Rectangle, AutoTiling.ConnectsTo, Color, Single, Nullable<Vector2>, Nullable<Vector2>, Single)
fullName: MLEM.Misc.AutoTiling.DrawAutoTile(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Rectangle, MLEM.Misc.AutoTiling.ConnectsTo, Microsoft.Xna.Framework.Color, System.Single, System.Nullable<Microsoft.Xna.Framework.Vector2>, System.Nullable<Microsoft.Xna.Framework.Vector2>, System.Single)
type: Method
source:
remote:
path: MLEM/Misc/AutoTiling.cs
branch: master
repo: https://github.com/Ellpeck/MLEM
id: DrawAutoTile
path: ../MLEM/Misc/AutoTiling.cs
startLine: 27
assemblies:
- MLEM
namespace: MLEM.Misc
summary: "\nThis method allows for a tiled texture to be drawn in an auto-tiling mode.\nThis allows, for example, a grass patch on a tilemap to have nice looking edges that transfer over into a path without any hard edges between tiles.\n\nFor auto-tiling in this way to work, the tiles have to be laid out in a specific order. This order is shown in the auto-tiling demo&apos;s textures.\nFor more information and an example, see <a href=\"https://github.com/Ellpeck/MLEM/blob/master/Demos/AutoTilingDemo.cs#L20-L28\">https://github.com/Ellpeck/MLEM/blob/master/Demos/AutoTilingDemo.cs#L20-L28</a>\n"
example: []
syntax:
content: public static void DrawAutoTile(SpriteBatch batch, Vector2 pos, Texture2D texture, Rectangle textureRegion, AutoTiling.ConnectsTo connectsTo, Color color, float rotation = 0F, Vector2? origin = default(Vector2? ), Vector2? scale = default(Vector2? ), float layerDepth = 0F)
parameters:
- id: batch
type: Microsoft.Xna.Framework.Graphics.SpriteBatch
description: ''
- id: pos
type: Microsoft.Xna.Framework.Vector2
description: ''
- id: texture
type: Microsoft.Xna.Framework.Graphics.Texture2D
description: ''
- id: textureRegion
type: Microsoft.Xna.Framework.Rectangle
description: ''
- id: connectsTo
type: MLEM.Misc.AutoTiling.ConnectsTo
description: ''
- id: color
type: Microsoft.Xna.Framework.Color
description: ''
- id: rotation
type: System.Single
description: ''
- id: origin
type: System.Nullable{Microsoft.Xna.Framework.Vector2}
description: ''
- id: scale
type: System.Nullable{Microsoft.Xna.Framework.Vector2}
description: ''
- id: layerDepth
type: System.Single
description: ''
content.vb: Public Shared Sub DrawAutoTile(batch As SpriteBatch, pos As Vector2, texture As Texture2D, textureRegion As Rectangle, connectsTo As AutoTiling.ConnectsTo, color As Color, rotation As Single = 0F, origin As Vector2? = Nothing, scale As Vector2? = Nothing, layerDepth As Single = 0F)
overload: MLEM.Misc.AutoTiling.DrawAutoTile*
nameWithType.vb: AutoTiling.DrawAutoTile(SpriteBatch, Vector2, Texture2D, Rectangle, AutoTiling.ConnectsTo, Color, Single, Nullable(Of Vector2), Nullable(Of Vector2), Single)
modifiers.csharp:
- public
- static
modifiers.vb:
- Public
- Shared
fullName.vb: MLEM.Misc.AutoTiling.DrawAutoTile(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Rectangle, MLEM.Misc.AutoTiling.ConnectsTo, Microsoft.Xna.Framework.Color, System.Single, System.Nullable(Of Microsoft.Xna.Framework.Vector2), System.Nullable(Of Microsoft.Xna.Framework.Vector2), System.Single)
name.vb: DrawAutoTile(SpriteBatch, Vector2, Texture2D, Rectangle, AutoTiling.ConnectsTo, Color, Single, Nullable(Of Vector2), Nullable(Of Vector2), Single)
references:
- uid: MLEM.Misc.AutoTiling.DrawAutoTile(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.Texture2D,Microsoft.Xna.Framework.Rectangle,MLEM.Misc.AutoTiling.ConnectsTo,Microsoft.Xna.Framework.Color,System.Single,System.Nullable{Microsoft.Xna.Framework.Vector2},System.Nullable{Microsoft.Xna.Framework.Vector2},System.Single)
commentId: M:MLEM.Misc.AutoTiling.DrawAutoTile(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.Texture2D,Microsoft.Xna.Framework.Rectangle,MLEM.Misc.AutoTiling.ConnectsTo,Microsoft.Xna.Framework.Color,System.Single,System.Nullable{Microsoft.Xna.Framework.Vector2},System.Nullable{Microsoft.Xna.Framework.Vector2},System.Single)
isExternal: true
- uid: MLEM.Misc
commentId: N:MLEM.Misc
name: MLEM.Misc
nameWithType: MLEM.Misc
fullName: MLEM.Misc
- uid: System.Object
commentId: T:System.Object
parent: System
isExternal: true
name: Object
nameWithType: Object
fullName: System.Object
- uid: System.Object.Equals(System.Object)
commentId: M:System.Object.Equals(System.Object)
parent: System.Object
isExternal: true
name: Equals(Object)
nameWithType: Object.Equals(Object)
fullName: System.Object.Equals(System.Object)
spec.csharp:
- uid: System.Object.Equals(System.Object)
name: Equals
nameWithType: Object.Equals
fullName: System.Object.Equals
isExternal: true
- name: (
nameWithType: (
fullName: (
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: )
nameWithType: )
fullName: )
spec.vb:
- uid: System.Object.Equals(System.Object)
name: Equals
nameWithType: Object.Equals
fullName: System.Object.Equals
isExternal: true
- name: (
nameWithType: (
fullName: (
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: )
nameWithType: )
fullName: )
- uid: System.Object.Equals(System.Object,System.Object)
commentId: M:System.Object.Equals(System.Object,System.Object)
parent: System.Object
isExternal: true
name: Equals(Object, Object)
nameWithType: Object.Equals(Object, Object)
fullName: System.Object.Equals(System.Object, System.Object)
spec.csharp:
- uid: System.Object.Equals(System.Object,System.Object)
name: Equals
nameWithType: Object.Equals
fullName: System.Object.Equals
isExternal: true
- name: (
nameWithType: (
fullName: (
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: ', '
nameWithType: ', '
fullName: ', '
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: )
nameWithType: )
fullName: )
spec.vb:
- uid: System.Object.Equals(System.Object,System.Object)
name: Equals
nameWithType: Object.Equals
fullName: System.Object.Equals
isExternal: true
- name: (
nameWithType: (
fullName: (
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: ', '
nameWithType: ', '
fullName: ', '
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: )
nameWithType: )
fullName: )
- uid: System.Object.GetHashCode
commentId: M:System.Object.GetHashCode
parent: System.Object
isExternal: true
name: GetHashCode()
nameWithType: Object.GetHashCode()
fullName: System.Object.GetHashCode()
spec.csharp:
- uid: System.Object.GetHashCode
name: GetHashCode
nameWithType: Object.GetHashCode
fullName: System.Object.GetHashCode
isExternal: true
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
spec.vb:
- uid: System.Object.GetHashCode
name: GetHashCode
nameWithType: Object.GetHashCode
fullName: System.Object.GetHashCode
isExternal: true
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
- uid: System.Object.GetType
commentId: M:System.Object.GetType
parent: System.Object
isExternal: true
name: GetType()
nameWithType: Object.GetType()
fullName: System.Object.GetType()
spec.csharp:
- uid: System.Object.GetType
name: GetType
nameWithType: Object.GetType
fullName: System.Object.GetType
isExternal: true
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
spec.vb:
- uid: System.Object.GetType
name: GetType
nameWithType: Object.GetType
fullName: System.Object.GetType
isExternal: true
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
- uid: System.Object.MemberwiseClone
commentId: M:System.Object.MemberwiseClone
parent: System.Object
isExternal: true
name: MemberwiseClone()
nameWithType: Object.MemberwiseClone()
fullName: System.Object.MemberwiseClone()
spec.csharp:
- uid: System.Object.MemberwiseClone
name: MemberwiseClone
nameWithType: Object.MemberwiseClone
fullName: System.Object.MemberwiseClone
isExternal: true
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
spec.vb:
- uid: System.Object.MemberwiseClone
name: MemberwiseClone
nameWithType: Object.MemberwiseClone
fullName: System.Object.MemberwiseClone
isExternal: true
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
commentId: M:System.Object.ReferenceEquals(System.Object,System.Object)
parent: System.Object
isExternal: true
name: ReferenceEquals(Object, Object)
nameWithType: Object.ReferenceEquals(Object, Object)
fullName: System.Object.ReferenceEquals(System.Object, System.Object)
spec.csharp:
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
name: ReferenceEquals
nameWithType: Object.ReferenceEquals
fullName: System.Object.ReferenceEquals
isExternal: true
- name: (
nameWithType: (
fullName: (
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: ', '
nameWithType: ', '
fullName: ', '
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: )
nameWithType: )
fullName: )
spec.vb:
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
name: ReferenceEquals
nameWithType: Object.ReferenceEquals
fullName: System.Object.ReferenceEquals
isExternal: true
- name: (
nameWithType: (
fullName: (
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: ', '
nameWithType: ', '
fullName: ', '
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: )
nameWithType: )
fullName: )
- uid: System.Object.ToString
commentId: M:System.Object.ToString
parent: System.Object
isExternal: true
name: ToString()
nameWithType: Object.ToString()
fullName: System.Object.ToString()
spec.csharp:
- uid: System.Object.ToString
name: ToString
nameWithType: Object.ToString
fullName: System.Object.ToString
isExternal: true
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
spec.vb:
- uid: System.Object.ToString
name: ToString
nameWithType: Object.ToString
fullName: System.Object.ToString
isExternal: true
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
- uid: System
commentId: N:System
isExternal: true
name: System
nameWithType: System
fullName: System
- uid: MLEM.Misc.AutoTiling.DrawAutoTile*
commentId: Overload:MLEM.Misc.AutoTiling.DrawAutoTile
name: DrawAutoTile
nameWithType: AutoTiling.DrawAutoTile
fullName: MLEM.Misc.AutoTiling.DrawAutoTile
- 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: Microsoft.Xna.Framework.Vector2
commentId: T:Microsoft.Xna.Framework.Vector2
parent: Microsoft.Xna.Framework
isExternal: true
name: Vector2
nameWithType: Vector2
fullName: Microsoft.Xna.Framework.Vector2
- uid: Microsoft.Xna.Framework.Graphics.Texture2D
commentId: T:Microsoft.Xna.Framework.Graphics.Texture2D
parent: Microsoft.Xna.Framework.Graphics
isExternal: true
name: Texture2D
nameWithType: Texture2D
fullName: Microsoft.Xna.Framework.Graphics.Texture2D
- uid: Microsoft.Xna.Framework.Rectangle
commentId: T:Microsoft.Xna.Framework.Rectangle
parent: Microsoft.Xna.Framework
isExternal: true
name: Rectangle
nameWithType: Rectangle
fullName: Microsoft.Xna.Framework.Rectangle
- uid: MLEM.Misc.AutoTiling.ConnectsTo
commentId: T:MLEM.Misc.AutoTiling.ConnectsTo
parent: MLEM.Misc
name: AutoTiling.ConnectsTo
nameWithType: AutoTiling.ConnectsTo
fullName: MLEM.Misc.AutoTiling.ConnectsTo
- uid: Microsoft.Xna.Framework.Color
commentId: T:Microsoft.Xna.Framework.Color
parent: Microsoft.Xna.Framework
isExternal: true
name: Color
nameWithType: Color
fullName: Microsoft.Xna.Framework.Color
- uid: System.Single
commentId: T:System.Single
parent: System
isExternal: true
name: Single
nameWithType: Single
fullName: System.Single
- uid: System.Nullable{Microsoft.Xna.Framework.Vector2}
commentId: T:System.Nullable{Microsoft.Xna.Framework.Vector2}
parent: System
definition: System.Nullable`1
name: Nullable<Vector2>
nameWithType: Nullable<Vector2>
fullName: System.Nullable<Microsoft.Xna.Framework.Vector2>
nameWithType.vb: Nullable(Of Vector2)
fullName.vb: System.Nullable(Of Microsoft.Xna.Framework.Vector2)
name.vb: Nullable(Of Vector2)
spec.csharp:
- uid: System.Nullable`1
name: Nullable
nameWithType: Nullable
fullName: System.Nullable
isExternal: true
- name: <
nameWithType: <
fullName: <
- uid: Microsoft.Xna.Framework.Vector2
name: Vector2
nameWithType: Vector2
fullName: Microsoft.Xna.Framework.Vector2
isExternal: true
- name: '>'
nameWithType: '>'
fullName: '>'
spec.vb:
- uid: System.Nullable`1
name: Nullable
nameWithType: Nullable
fullName: System.Nullable
isExternal: true
- name: '(Of '
nameWithType: '(Of '
fullName: '(Of '
- uid: Microsoft.Xna.Framework.Vector2
name: Vector2
nameWithType: Vector2
fullName: Microsoft.Xna.Framework.Vector2
isExternal: true
- name: )
nameWithType: )
fullName: )
- 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
- uid: Microsoft.Xna.Framework
commentId: N:Microsoft.Xna.Framework
isExternal: true
name: Microsoft.Xna.Framework
nameWithType: Microsoft.Xna.Framework
fullName: Microsoft.Xna.Framework
- uid: System.Nullable`1
commentId: T:System.Nullable`1
isExternal: true
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
nameWithType: Nullable
fullName: System.Nullable
isExternal: true
- name: <
nameWithType: <
fullName: <
- name: T
nameWithType: T
fullName: T
- name: '>'
nameWithType: '>'
fullName: '>'
spec.vb:
- uid: System.Nullable`1
name: Nullable
nameWithType: Nullable
fullName: System.Nullable
isExternal: true
- name: '(Of '
nameWithType: '(Of '
fullName: '(Of '
- name: T
nameWithType: T
fullName: T
- name: )
nameWithType: )
fullName: )