C# Class Gruppe22.Client.TileSet

Inheritance: IXmlSerializable
Afficher le fichier Open project: propra13-orga/gruppe22 Class Usage Examples

Protected Properties

Свойство Type Description
_content Microsoft.Xna.Framework.Content.ContentManager
_fileName string
_height int
_textures List
_width int

Méthodes publiques

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

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

GetSchema() public méthode

Useless function required by IXmlSerializable
public GetSchema ( ) : System.Xml.Schema.XmlSchema
Résultat System.Xml.Schema.XmlSchema

Load() public méthode

public Load ( string filename = "bla.xml" ) : void
filename string
Résultat void

ReadXml() public méthode

Load object from XML-file
public ReadXml ( System reader ) : void
reader System Load object from XML-stream
Résultat void

Save() public méthode

public Save ( string filename = "bla.xml" ) : void
filename string
Résultat void

TileSet() public méthode

Necessary Constructor for serialization; avoid otherwise (!)
public TileSet ( ) : System
Résultat System

TileSet() public méthode

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

WriteXml() public méthode

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

this() public méthode

public this ( int i ) : TileObject
i int
Résultat TileObject

Property Details

_content protected_oe property

protected ContentManager,Microsoft.Xna.Framework.Content _content
Résultat Microsoft.Xna.Framework.Content.ContentManager

_fileName protected_oe property

protected string _fileName
Résultat string

_height protected_oe property

protected int _height
Résultat int

_textures protected_oe property

protected List _textures
Résultat List

_width protected_oe property

protected int _width
Résultat int