C# Class Nikki.Support.MostWanted.Framework.SlotTypeManager

A Manager{T} for SlotType collections.
Inheritance: Manager
显示文件 Open project: SpeedReflect/Nikki

Public Methods

Method Description
Export ( string cname, BinaryWriter bw, bool serialized = true ) : void

Exports collection with CollectionName specified to a filename provided.

Import ( SerializeType type, BinaryReader br ) : void

Imports collection from file provided and attempts to add it to the end of this Manager{T} in case it does not exist.

SlotTypeManager ( Datamap db ) : System

Initializes new instance of SlotTypeManager.

Private Methods

Method Description
Assemble ( BinaryWriter bw, string mark ) : void

Assembles collection data into byte buffers.

CreationCheck ( string cname ) : void

Checks whether CollectionName provided allows creation of a new collection.

Disassemble ( BinaryReader br, Block block ) : void

Disassembles data into separate collections in this SlotTypeManager.

Method Details

Export() public method

Exports collection with CollectionName specified to a filename provided.
public Export ( string cname, BinaryWriter bw, bool serialized = true ) : void
cname string CollectionName of a collection to export.
bw BinaryWriter to write data with.
serialized bool True if collection exported should be serialized; /// false otherwise.
return void

Import() public method

Imports collection from file provided and attempts to add it to the end of this Manager{T} in case it does not exist.
public Import ( SerializeType type, BinaryReader br ) : void
type SerializeType Type of serialization of a collection.
br BinaryReader to read data with.
return void

SlotTypeManager() public method

Initializes new instance of SlotTypeManager.
public SlotTypeManager ( Datamap db ) : System
db Datamap to which this manager belongs to.
return System