C# 클래스 Zyrenth.Zora.Secret

Represents a secret used in the Zelda Oracle series games.
상속: INotifyPropertyChanged
파일 보기 프로젝트 열기: kabili207/zora-sharp

공개 메소드들

메소드 설명
Equals ( object obj ) : bool

Determines whether the specified System.Object, is equal to this instance.

GetHashCode ( ) : int

Returns a hash code for this instance.

Load ( GameInfo info ) : void

Loads in data from the specified game info

Load ( byte secret ) : void

Loads in data from the raw secret data provided

Load ( string secret ) : void

Loads in data from the secret string provided

ToBytes ( ) : byte[]

Gets the raw secret data as a byte array

ToString ( ) : string

Returns a string that represents the current secret.

ToString will format the secret as it would be represented in the games. Internally, this method calls ToBytes and passes the result to SecretParser.CreateString.

보호된 메소드들

메소드 설명
BinaryStringToByteArray ( string data ) : byte[]

Converts a binary string (i.e. a string of ones and zeros) to a byte array

ByteArrayToBinaryString ( byte secret ) : string

Converts a byte array to a string representation of ones and zeros

CalculateChecksum ( byte secret ) : byte

Calculates the checksum for the specified secret

DecodeBytes ( byte secret ) : byte[]

Takes an encoded secret, as used by the games, and decodes it.

EncodeBytes ( byte data ) : byte[]

Takes a raw, unencoded secret and encodes it.

NotifyPropertyChanged ( string propertyName ) : void

Sends a notification that a property has changed.

메소드 상세

BinaryStringToByteArray() 보호된 메소드

Converts a binary string (i.e. a string of ones and zeros) to a byte array
protected BinaryStringToByteArray ( string data ) : byte[]
data string The binary string
리턴 byte[]

ByteArrayToBinaryString() 보호된 메소드

Converts a byte array to a string representation of ones and zeros
protected ByteArrayToBinaryString ( byte secret ) : string
secret byte The secret.
리턴 string

CalculateChecksum() 보호된 메소드

Calculates the checksum for the specified secret
protected CalculateChecksum ( byte secret ) : byte
secret byte The secret
리턴 byte

DecodeBytes() 보호된 메소드

Takes an encoded secret, as used by the games, and decodes it.
protected DecodeBytes ( byte secret ) : byte[]
secret byte The encoded secret.
리턴 byte[]

EncodeBytes() 보호된 메소드

Takes a raw, unencoded secret and encodes it.
protected EncodeBytes ( byte data ) : byte[]
data byte The secret data.
리턴 byte[]

Equals() 공개 메소드

Determines whether the specified System.Object, is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
리턴 bool

GetHashCode() 공개 메소드

Returns a hash code for this instance.
public GetHashCode ( ) : int
리턴 int

Load() 공개 추상적인 메소드

Loads in data from the specified game info
public abstract Load ( GameInfo info ) : void
info GameInfo The game info
리턴 void

Load() 공개 추상적인 메소드

Loads in data from the raw secret data provided
public abstract Load ( byte secret ) : void
secret byte The raw secret data
리턴 void

Load() 공개 메소드

Loads in data from the secret string provided
public Load ( string secret ) : void
secret string The secret
리턴 void

NotifyPropertyChanged() 보호된 메소드

Sends a notification that a property has changed.
protected NotifyPropertyChanged ( string propertyName ) : void
propertyName string Name of the property.
리턴 void

ToBytes() 공개 추상적인 메소드

Gets the raw secret data as a byte array
public abstract ToBytes ( ) : byte[]
리턴 byte[]

ToString() 공개 메소드

Returns a string that represents the current secret.
ToString will format the secret as it would be represented in the games. Internally, this method calls ToBytes and passes the result to SecretParser.CreateString.
public ToString ( ) : string
리턴 string