C# Class YGOSharp.OCGWrapper.Api

Exibir arquivo Open project: IceYGO/ygosharp

Public Methods

Method Description
Dispose ( ) : void
Init ( string rootPath = ".", string scriptDirectory = "script", string databaseFile = "cards.cdb" ) : void

Private Methods

Method Description
GetScriptFilename ( string scriptName ) : string
OnCardReader ( UInt32 code, Card pData ) : UInt32
OnMessageHandler ( IntPtr pDuel, UInt32 messageType ) : UInt32
OnScriptReader ( String scriptName, Int32 len ) : IntPtr
create_duel ( UInt32 seed ) : IntPtr
end_duel ( IntPtr pduel ) : void
get_log_message ( IntPtr pduel, IntPtr buf ) : void
get_message ( IntPtr pduel, IntPtr buf ) : Int32
new_card ( IntPtr pduel, UInt32 code, Byte owner, Byte playerid, Byte location, Byte sequence, Byte position ) : void
new_tag_card ( IntPtr pduel, UInt32 code, Byte owner, Byte location ) : void
process ( IntPtr pduel ) : Int32
query_card ( IntPtr pduel, Byte playerid, Byte location, Byte sequence, Int32 queryFlag, IntPtr buf, Int32 useCache ) : Int32
query_field_card ( IntPtr pduel, Byte playerid, Byte location, Int32 queryFlag, IntPtr buf, Int32 useCache ) : Int32
query_field_count ( IntPtr pduel, Byte playerid, Byte location ) : Int32
query_field_info ( IntPtr pduel, IntPtr buf ) : Int32
set_card_reader ( CardReader f ) : void
set_message_handler ( MessageHandler f ) : void
set_player_info ( IntPtr pduel, Int32 playerid, Int32 lp, Int32 startcount, Int32 drawcount ) : void
set_responseb ( IntPtr pduel, IntPtr buf ) : void
set_responsei ( IntPtr pduel, UInt32 value ) : void
set_script_reader ( ScriptReader f ) : void
start_duel ( IntPtr pduel, Int32 options ) : void

Method Details

Dispose() public static method

public static Dispose ( ) : void
return void

Init() public static method

public static Init ( string rootPath = ".", string scriptDirectory = "script", string databaseFile = "cards.cdb" ) : void
rootPath string
scriptDirectory string
databaseFile string
return void