mirror of
https://github.com/wassname/phaser.git
synced 2026-07-04 17:20:31 +08:00
20 lines
300 B
JavaScript
20 lines
300 B
JavaScript
module.exports = Material;
|
|
|
|
var idCounter = 0;
|
|
|
|
/**
|
|
* Defines a physics material.
|
|
* @class Material
|
|
* @constructor
|
|
* @param string name
|
|
* @author schteppe
|
|
*/
|
|
function Material(){
|
|
/**
|
|
* The material identifier
|
|
* @property id
|
|
* @type {Number}
|
|
*/
|
|
this.id = idCounter++;
|
|
};
|