C# Class Nez.EffectResource

Show file Open project: prime31/Nez

Private Properties

Property Type Description
getEmbeddedResourceBytes byte[]
getMonoGameEmbeddedResourceBytes byte[]

Public Methods

Method Description
getFileResourceBytes ( string path ) : byte[]

fetches the raw byte data of a file from the Content folder. Used to keep the Effect subclass code simple and clean due to the Effect constructor requiring the byte[].

Private Methods

Method Description
getEmbeddedResourceBytes ( string name ) : byte[]

gets the raw byte[] from an EmbeddedResource

getMonoGameEmbeddedResourceBytes ( string name ) : byte[]

Method Details

getFileResourceBytes() public static method

fetches the raw byte data of a file from the Content folder. Used to keep the Effect subclass code simple and clean due to the Effect constructor requiring the byte[].
public static getFileResourceBytes ( string path ) : byte[]
path string Path.
return byte[]