C# 클래스 Bricklayer.Common.World.Tile

Represents either a foreground or background tile in the map
파일 보기 프로젝트 열기: Cyral/Bricklayer 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
backgroundTint Color

공개 메소드들

메소드 설명
Draw ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 drawPosition, int x, int y, int z, bool flat = false ) : void

Handles drawing of a single tile

Equals ( Tile compareTo ) : bool
Tile ( BlockType block ) : System

Sets or creates a new block

Update ( GameTime gameTime ) : void

Handles updating the tile's logic

메소드 상세

Draw() 공개 메소드

Handles drawing of a single tile
public Draw ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 drawPosition, int x, int y, int z, bool flat = false ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
texture Microsoft.Xna.Framework.Graphics.Texture2D
drawPosition Vector2
x int
y int
z int
flat bool
리턴 void

Equals() 공개 메소드

public Equals ( Tile compareTo ) : bool
compareTo Tile
리턴 bool

Tile() 공개 메소드

Sets or creates a new block
public Tile ( BlockType block ) : System
block BlockType
리턴 System

Update() 공개 메소드

Handles updating the tile's logic
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

프로퍼티 상세

backgroundTint 보호되어 있는 정적으로 프로퍼티

protected static Color backgroundTint
리턴 Color