C# Class Gruppe22.Client.TileSet

Inheritance: IXmlSerializable
Show file Open project: propra13-orga/gruppe22 Class Usage Examples

Protected Properties

Property Type Description
_content Microsoft.Xna.Framework.Content.ContentManager
_fileName string
_height int
_textures List
_width int

Public Methods

Method Description
Add ( string filename, int id, Rectangle cutOut, int cols = 1, int rows = 1, bool dir = false ) : void

GetSchema ( ) : System.Xml.Schema.XmlSchema

Useless function required by IXmlSerializable

Load ( string filename = "bla.xml" ) : void

ReadXml ( System reader ) : void

Load object from XML-file

Save ( string filename = "bla.xml" ) : void

TileSet ( ) : System

Necessary Constructor for serialization; avoid otherwise (!)

TileSet ( Microsoft.Xna.Framework.Content.ContentManager content, int width, int height, string fileName = "" ) : System
WriteXml ( System writer ) : void

Dump object to XML-file

this ( int i ) : TileObject

Method Details

Add() public method

public Add ( string filename, int id, Rectangle cutOut, int cols = 1, int rows = 1, bool dir = false ) : void
filename string
id int
cutOut Microsoft.Xna.Framework.Rectangle
cols int
rows int
dir bool
return void

GetSchema() public method

Useless function required by IXmlSerializable
public GetSchema ( ) : System.Xml.Schema.XmlSchema
return System.Xml.Schema.XmlSchema

Load() public method

public Load ( string filename = "bla.xml" ) : void
filename string
return void

ReadXml() public method

Load object from XML-file
public ReadXml ( System reader ) : void
reader System Load object from XML-stream
return void

Save() public method

public Save ( string filename = "bla.xml" ) : void
filename string
return void

TileSet() public method

Necessary Constructor for serialization; avoid otherwise (!)
public TileSet ( ) : System
return System

TileSet() public method

public TileSet ( Microsoft.Xna.Framework.Content.ContentManager content, int width, int height, string fileName = "" ) : System
content Microsoft.Xna.Framework.Content.ContentManager
width int
height int
fileName string
return System

WriteXml() public method

Dump object to XML-file
public WriteXml ( System writer ) : void
writer System Write object to XML-stream
return void

this() public method

public this ( int i ) : TileObject
i int
return TileObject

Property Details

_content protected property

protected ContentManager,Microsoft.Xna.Framework.Content _content
return Microsoft.Xna.Framework.Content.ContentManager

_fileName protected property

protected string _fileName
return string

_height protected property

protected int _height
return int

_textures protected property

protected List _textures
return List

_width protected property

protected int _width
return int