C# Класс Nez.Overlap2D.O2DMainItem

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

Открытые свойства

Свойство Тип Описание
customVars string
itemIdentifier string
itemName string
layerDepth float
layerName string
originX float
originY float
renderLayer int
rotation float
scaleX float
scaleY float
tint Color
uniqueId int
x float
y float
zIndex int

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

Метод Описание
calculateLayerDepth ( float zIndexMax ) : float

helper to translate zIndex to layerDepth. zIndexMax should be at least equal to the highest zIndex

getCustomVarBool ( string key, bool defaultValue = true ) : bool
getCustomVarFloat ( string key, float defaultValue = 0f ) : float
getCustomVarInt ( string key, int defaultValue ) : int
getCustomVarString ( string key ) : string
getCustomVars ( ) : string>.Dictionary
orginForImageSize ( float width, float height ) : Vector2

translates the bottom-left based origin of Overlap2D to a top-left based origin

parseCustomVars ( ) : void

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

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

helper to translate zIndex to layerDepth. zIndexMax should be at least equal to the highest zIndex
public calculateLayerDepth ( float zIndexMax ) : float
zIndexMax float Z index max.
Результат float

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

public getCustomVarBool ( string key, bool defaultValue = true ) : bool
key string
defaultValue bool
Результат bool

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

public getCustomVarFloat ( string key, float defaultValue = 0f ) : float
key string
defaultValue float
Результат float

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

public getCustomVarInt ( string key, int defaultValue ) : int
key string
defaultValue int
Результат int

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

public getCustomVarString ( string key ) : string
key string
Результат string

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

public getCustomVars ( ) : string>.Dictionary
Результат string>.Dictionary

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

translates the bottom-left based origin of Overlap2D to a top-left based origin
public orginForImageSize ( float width, float height ) : Vector2
width float Width.
height float Height.
Результат Vector2

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

public parseCustomVars ( ) : void
Результат void

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

customVars публичное свойство

public string customVars
Результат string

itemIdentifier публичное свойство

public string itemIdentifier
Результат string

itemName публичное свойство

public string itemName
Результат string

layerDepth публичное свойство

layerDepth is calculated by the Pipeline processor. It is derrived by getting the max zIndex and converting it to the MonoGame 0 - 1 range. If sorting issues arise the CompositeItemVO.calculateLayerDepthForChild method is where to look. The default value probably just needs to be increased a bit.
public float layerDepth
Результат float

layerName публичное свойство

public string layerName
Результат string

originX публичное свойство

public float originX
Результат float

originY публичное свойство

public float originY
Результат float

renderLayer публичное свойство

renderLayer is derived from the layer name set in Overlap2D. If the layer name contains an integer that value will be parsed and set.
public int renderLayer
Результат int

rotation публичное свойство

public float rotation
Результат float

scaleX публичное свойство

public float scaleX
Результат float

scaleY публичное свойство

public float scaleY
Результат float

tint публичное свойство

public Color tint
Результат Color

uniqueId публичное свойство

public int uniqueId
Результат int

x публичное свойство

public float x
Результат float

y публичное свойство

public float y
Результат float

zIndex публичное свойство

public int zIndex
Результат int