C# Класс SadConsole.CellAppearance

Наследование: ICellAppearance
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
CellAppearance ( ) : System.Runtime.Serialization

Creates a new instance of the cell appearance with a white foreground and transparent background.

CellAppearance ( Microsoft.Xna.Framework.Color foreground, Microsoft.Xna.Framework.Color background ) : System.Runtime.Serialization

Creates a new instance of the cell appearance with the specified colors and effect.

CellAppearance ( Microsoft.Xna.Framework.Color foreground, Microsoft.Xna.Framework.Color background, int glyphIndex ) : System.Runtime.Serialization

Creates a new instance of the cell appearance with the specified colors and effect.

CellAppearance ( Microsoft.Xna.Framework.Color foreground, Microsoft.Xna.Framework.Color background, int glyphIndex, SpriteEffects spriteEffect ) : System.Runtime.Serialization

Creates a new instance of the cell appearance with the specified colors and effect.

Clone ( ) : CellAppearance

Creates a new copy of this cell appearance.

CopyAppearanceTo ( ICellAppearance destination ) : void

Applies this appearance instance values to the destination appearance.

SwapColors ( ) : void

Swaps the foreground and background colors.

Описание методов

CellAppearance() публичный Метод

Creates a new instance of the cell appearance with a white foreground and transparent background.
public CellAppearance ( ) : System.Runtime.Serialization
Результат System.Runtime.Serialization

CellAppearance() публичный Метод

Creates a new instance of the cell appearance with the specified colors and effect.
public CellAppearance ( Microsoft.Xna.Framework.Color foreground, Microsoft.Xna.Framework.Color background ) : System.Runtime.Serialization
foreground Microsoft.Xna.Framework.Color The foreground color of the cell appearance.
background Microsoft.Xna.Framework.Color The background color of the cell appearance.
Результат System.Runtime.Serialization

CellAppearance() публичный Метод

Creates a new instance of the cell appearance with the specified colors and effect.
public CellAppearance ( Microsoft.Xna.Framework.Color foreground, Microsoft.Xna.Framework.Color background, int glyphIndex ) : System.Runtime.Serialization
foreground Microsoft.Xna.Framework.Color The foreground color of the cell appearance.
background Microsoft.Xna.Framework.Color The background color of the cell appearance.
glyphIndex int The glyph of the cell appearance.
Результат System.Runtime.Serialization

CellAppearance() публичный Метод

Creates a new instance of the cell appearance with the specified colors and effect.
public CellAppearance ( Microsoft.Xna.Framework.Color foreground, Microsoft.Xna.Framework.Color background, int glyphIndex, SpriteEffects spriteEffect ) : System.Runtime.Serialization
foreground Microsoft.Xna.Framework.Color The foreground color of the cell appearance.
background Microsoft.Xna.Framework.Color The background color of the cell appearance.
glyphIndex int The glyph of the cell appearance.
spriteEffect SpriteEffects The sprite mirror effect of the cell appearance.
Результат System.Runtime.Serialization

Clone() публичный Метод

Creates a new copy of this cell appearance.
public Clone ( ) : CellAppearance
Результат CellAppearance

CopyAppearanceTo() публичный Метод

Applies this appearance instance values to the destination appearance.
public CopyAppearanceTo ( ICellAppearance destination ) : void
destination ICellAppearance The target of the appearance copy.
Результат void

SwapColors() публичный Метод

Swaps the foreground and background colors.
public SwapColors ( ) : void
Результат void