C# 클래스 Mr.Shipper.HelperFuncs

파일 보기 프로젝트 열기: Afr0Games/Project-Dollhouse 1 사용 예제들

공개 메소드들

메소드 설명
CheckCollision ( ulong ID, string>.Dictionary UIEntries ) : bool

Checks for collisions between existing and generated IDs, and prints out if any were found.

Get64BitRandom ( ulong minValue, ulong maxValue ) : ulong
GetFileID ( FAR3Entry Entry ) : uint

Returns a FileID for a rogue file (file that isn't archived).

GetTypeID ( string Filetype ) : uint

Returns the TypeID for a given filetype.

SanitizeFilename ( string Filename ) : string

Sanitize's a file's name so it can be used in an C# enumeration.

ToID ( uint TypeID, uint FileID ) : ulong

Converts a TypeID and FileID to a ulong that can be converted to a hex string for output as XML.

메소드 상세

CheckCollision() 공개 정적인 메소드

Checks for collisions between existing and generated IDs, and prints out if any were found.
public static CheckCollision ( ulong ID, string>.Dictionary UIEntries ) : bool
ID ulong
UIEntries string>.Dictionary The entries to check.
리턴 bool

Get64BitRandom() 공개 정적인 메소드

public static Get64BitRandom ( ulong minValue, ulong maxValue ) : ulong
minValue ulong
maxValue ulong
리턴 ulong

GetFileID() 공개 정적인 메소드

Returns a FileID for a rogue file (file that isn't archived).
public static GetFileID ( FAR3Entry Entry ) : uint
Entry FAR3Entry The entry generated for the file.
리턴 uint

GetTypeID() 공개 정적인 메소드

Returns the TypeID for a given filetype.
public static GetTypeID ( string Filetype ) : uint
Filetype string A filetype used by the game.
리턴 uint

SanitizeFilename() 공개 정적인 메소드

Sanitize's a file's name so it can be used in an C# enumeration.
public static SanitizeFilename ( string Filename ) : string
Filename string The name to sanitize.
리턴 string

ToID() 공개 정적인 메소드

Converts a TypeID and FileID to a ulong that can be converted to a hex string for output as XML.
public static ToID ( uint TypeID, uint FileID ) : ulong
TypeID uint A TypeID from a FAR3Entry.
FileID uint A FileID from a FAR3Entry.
리턴 ulong