C# Class Dabrorius.MonoPunk.Spritemap

Inheritance: Image
Mostra file Open project: dabrorius/MonoPunk

Public Properties

Property Type Description
Complete bool
rate int

Public Methods

Method Description
Add ( string name, int frames, double frameRate, bool loop = true ) : Anim
Play ( string name = "", bool reset = false, int frame ) : Anim
Spritemap ( Microsoft.Xna.Framework.Graphics.Texture2D source, int frameWidth, int frameHeight ) : System
Update ( ) : void
updateClipRect ( ) : void

Method Details

Add() public method

public Add ( string name, int frames, double frameRate, bool loop = true ) : Anim
name string
frames int
frameRate double
loop bool
return Anim

Play() public method

public Play ( string name = "", bool reset = false, int frame ) : Anim
name string
reset bool
frame int
return Anim

Spritemap() public method

public Spritemap ( Microsoft.Xna.Framework.Graphics.Texture2D source, int frameWidth, int frameHeight ) : System
source Microsoft.Xna.Framework.Graphics.Texture2D
frameWidth int
frameHeight int
return System

Update() public method

public Update ( ) : void
return void

updateClipRect() public method

public updateClipRect ( ) : void
return void

Property Details

Complete public_oe property

public bool Complete
return bool

rate public_oe property

public int rate
return int