Otter  0.9.8.91
2d Game Development Framework based on SFML.Net
 All Classes Namespaces Functions Variables Enumerations Properties
Otter.OgmoLayer Class Reference

Class representing a layer loaded from Ogmo. More...

Public Member Functions

 OgmoLayer (string name, string type)
 Create a new OgmoLayer. More...
 
 OgmoLayer (XmlElement xml)
 Create a new OgmoLayer by parsing an XmlElement. More...
 

Public Attributes

string Name
 The name of the layer. More...
 
string ExportMode
 The export mode of the layer from Ogmo Editor. More...
 
string Type
 The type of the layer from Ogmo Editor. More...
 
int GridWidth
 The width of each grid cell. More...
 
int GridHeight
 The height of each grid cell. More...
 
float ScrollX = 1
 The horizontal parallax of the layer. More...
 
float ScrollY = 1
 The vertical parallax of the layer. More...
 
Color Color
 The color of layer from Ogmo Editor. More...
 

Detailed Description

Class representing a layer loaded from Ogmo.

Constructor & Destructor Documentation

Otter.OgmoLayer.OgmoLayer ( string  name,
string  type 
)

Create a new OgmoLayer.

Parameters
nameThe name of the layer.
typeThe type of the layer.
Otter.OgmoLayer.OgmoLayer ( XmlElement  xml)

Create a new OgmoLayer by parsing an XmlElement.

Parameters
xmlAn XmlElement from an Ogmo Editor project file.

Member Data Documentation

Color Otter.OgmoLayer.Color

The color of layer from Ogmo Editor.

string Otter.OgmoLayer.ExportMode

The export mode of the layer from Ogmo Editor.

int Otter.OgmoLayer.GridHeight

The height of each grid cell.

int Otter.OgmoLayer.GridWidth

The width of each grid cell.

string Otter.OgmoLayer.Name

The name of the layer.

float Otter.OgmoLayer.ScrollX = 1

The horizontal parallax of the layer.

float Otter.OgmoLayer.ScrollY = 1

The vertical parallax of the layer.

string Otter.OgmoLayer.Type

The type of the layer from Ogmo Editor.


The documentation for this class was generated from the following file: