C# Class MrGravity.Import_Code.EntityInfo

This class represents the inbetween stage of XML and translated GameObject
显示文件 Open project: DizWARE/Mr-Gravity Class Usage Examples

Public Properties

Property Type Description
MCollisionType string
MId int
MLocation Microsoft.Xna.Framework.Vector2
MName string
MProperties string>.Dictionary
MTextureFile string
MTrigger bool
MType string

Public Methods

Method Description
CreatePlayerEndInfo ( Vector2 startLocation ) : EntityInfo
CreatePlayerInfo ( Vector2 startLocation ) : EntityInfo
CreateWallInfo ( ) : EntityInfo
EntityInfo ( System.Xml.Linq.XElement entity ) : System.Collections.Generic

Creates an entity out of an XElement that defiens an entity

Private Methods

Method Description
EntityInfo ( string name, Vector2 startLocation ) : System.Collections.Generic

Method Details

CreatePlayerEndInfo() public static method

public static CreatePlayerEndInfo ( Vector2 startLocation ) : EntityInfo
startLocation Microsoft.Xna.Framework.Vector2
return EntityInfo

CreatePlayerInfo() public static method

public static CreatePlayerInfo ( Vector2 startLocation ) : EntityInfo
startLocation Microsoft.Xna.Framework.Vector2
return EntityInfo

CreateWallInfo() public static method

public static CreateWallInfo ( ) : EntityInfo
return EntityInfo

EntityInfo() public method

Creates an entity out of an XElement that defiens an entity
public EntityInfo ( System.Xml.Linq.XElement entity ) : System.Collections.Generic
entity System.Xml.Linq.XElement The XML chunck that defines this entity
return System.Collections.Generic

Property Details

MCollisionType public_oe property

public string MCollisionType
return string

MId public_oe property

public int MId
return int

MLocation public_oe property

public Vector2,Microsoft.Xna.Framework MLocation
return Microsoft.Xna.Framework.Vector2

MName public_oe property

public string MName
return string

MProperties public_oe property

public Dictionary MProperties
return string>.Dictionary

MTextureFile public_oe property

public string MTextureFile
return string

MTrigger public_oe property

public bool MTrigger
return bool

MType public_oe property

public string MType
return string