C# Class Nez.Overlap2D.O2DMainItem

Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Method Details

calculateLayerDepth() public méthode

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.
Résultat float

getCustomVarBool() public méthode

public getCustomVarBool ( string key, bool defaultValue = true ) : bool
key string
defaultValue bool
Résultat bool

getCustomVarFloat() public méthode

public getCustomVarFloat ( string key, float defaultValue = 0f ) : float
key string
defaultValue float
Résultat float

getCustomVarInt() public méthode

public getCustomVarInt ( string key, int defaultValue ) : int
key string
defaultValue int
Résultat int

getCustomVarString() public méthode

public getCustomVarString ( string key ) : string
key string
Résultat string

getCustomVars() public méthode

public getCustomVars ( ) : string>.Dictionary
Résultat string>.Dictionary

orginForImageSize() public méthode

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.
Résultat Vector2

parseCustomVars() public méthode

public parseCustomVars ( ) : void
Résultat void

Property Details

customVars public_oe property

public string customVars
Résultat string

itemIdentifier public_oe property

public string itemIdentifier
Résultat string

itemName public_oe property

public string itemName
Résultat string

layerDepth public_oe property

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
Résultat float

layerName public_oe property

public string layerName
Résultat string

originX public_oe property

public float originX
Résultat float

originY public_oe property

public float originY
Résultat float

renderLayer public_oe property

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
Résultat int

rotation public_oe property

public float rotation
Résultat float

scaleX public_oe property

public float scaleX
Résultat float

scaleY public_oe property

public float scaleY
Résultat float

tint public_oe property

public Color tint
Résultat Color

uniqueId public_oe property

public int uniqueId
Résultat int

x public_oe property

public float x
Résultat float

y public_oe property

public float y
Résultat float

zIndex public_oe property

public int zIndex
Résultat int