C# Class Zyrenth.Zora.MemorySecret

Represents a secret used to transfer memories between the games in the Zelda Oracle series.
Inheritance: Secret
Show file Open project: kabili207/zora-sharp

Public Methods

Method Description
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

Because GameInfo does not contain information about memories, only the properties TargetGame and Secret.GameID will be populated by this method.

Load ( byte secret ) : void

Loads in data from the raw secret data provided

MemorySecret ( ) : System

Initializes a new instance of the MemorySecret class.

MemorySecret ( Game game, short gameId, System.Memory memory, bool isReturnSecret ) : System

Initializes a new instance of the MemorySecret class with the specified values.

MemorySecret ( GameInfo info, System.Memory memory, bool isReturnSecret ) : System

Initializes a new instance of the MemorySecret class.

ToBytes ( ) : byte[]

Gets the raw secret data as a byte array

Method Details

Equals() public method

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

GetHashCode() public method

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

Load() public method

Loads in data from the specified game info
Because GameInfo does not contain information about memories, only the properties TargetGame and Secret.GameID will be populated by this method.
public Load ( GameInfo info ) : void
info GameInfo The game info
return void

Load() public method

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

MemorySecret() public method

Initializes a new instance of the MemorySecret class.
public MemorySecret ( ) : System
return System

MemorySecret() public method

Initializes a new instance of the MemorySecret class with the specified values.
public MemorySecret ( Game game, short gameId, System.Memory memory, bool isReturnSecret ) : System
game Game The game.
gameId short The game id.
memory System.Memory The memory.
isReturnSecret bool if set to true is return secret.
return System

MemorySecret() public method

Initializes a new instance of the MemorySecret class.
public MemorySecret ( GameInfo info, System.Memory memory, bool isReturnSecret ) : System
info GameInfo The game information.
memory System.Memory The memory.
isReturnSecret bool if set to true [is return secret].
return System

ToBytes() public method

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