C# Class Material_Editor.BaseMaterialFile

Datei anzeigen Open project: ousnius/Material-Editor Class Usage Examples

Private Properties

Property Type Description
ConvertAlphaBlendMode AlphaBlendModeType
ConvertAlphaBlendMode void
OnDeserializing void

Public Methods

Method Description
Deserialize ( BinaryReader input ) : void
Open ( FileStream file ) : bool
Save ( string fileName ) : bool
Serialize ( BinaryWriter output ) : void

Protected Methods

Method Description
BaseMaterialFile ( uint signature ) : System
ReadString ( BinaryReader input ) : string
SetDefaults ( ) : void
WriteString ( BinaryWriter output, string str ) : void

Private Methods

Method Description
ConvertAlphaBlendMode ( byte a, uint b, uint c ) : AlphaBlendModeType
ConvertAlphaBlendMode ( AlphaBlendModeType type, byte &a, uint &b, uint &c ) : void
OnDeserializing ( StreamingContext c ) : void

Method Details

BaseMaterialFile() protected method

protected BaseMaterialFile ( uint signature ) : System
signature uint
return System

Deserialize() public method

public Deserialize ( BinaryReader input ) : void
input System.IO.BinaryReader
return void

Open() public method

public Open ( FileStream file ) : bool
file System.IO.FileStream
return bool

ReadString() protected static method

protected static ReadString ( BinaryReader input ) : string
input System.IO.BinaryReader
return string

Save() public method

public Save ( string fileName ) : bool
fileName string
return bool

Serialize() public method

public Serialize ( BinaryWriter output ) : void
output System.IO.BinaryWriter
return void

SetDefaults() protected method

protected SetDefaults ( ) : void
return void

WriteString() protected static method

protected static WriteString ( BinaryWriter output, string str ) : void
output System.IO.BinaryWriter
str string
return void