C# Класс YGOSharp.OCGWrapper.Duel

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddCard ( int cardId, int owner, CardLocation location ) : void
AddTagCard ( int cardId, int owner, CardLocation location ) : void
Create ( uint seed ) : Duel
End ( ) : void
GetNativePtr ( ) : IntPtr
InitPlayers ( int startLp, int startHand, int drawCount ) : void
Process ( ) : int
QueryCard ( int player, int location, int sequence, int flag ) : byte[]
QueryFieldCard ( int player, CardLocation location, int flag, bool useCache ) : byte[]
QueryFieldCount ( int player, CardLocation location ) : int
QueryFieldInfo ( ) : byte[]
SetAnalyzer ( Func analyzer ) : void
SetErrorHandler ( Action errorHandler ) : void
SetResponse ( byte resp ) : void
SetResponse ( int resp ) : void
Start ( int options ) : void

Приватные методы

Метод Описание
Create ( IntPtr pDuel ) : Duel
Dispose ( ) : void
Duel ( IntPtr duelPtr ) : System
HandleMessage ( BinaryReader reader, byte raw, int len ) : int
OnMessage ( UInt32 messageType ) : void

Описание методов

AddCard() публичный Метод

public AddCard ( int cardId, int owner, CardLocation location ) : void
cardId int
owner int
location CardLocation
Результат void

AddTagCard() публичный Метод

public AddTagCard ( int cardId, int owner, CardLocation location ) : void
cardId int
owner int
location CardLocation
Результат void

Create() публичный статический Метод

public static Create ( uint seed ) : Duel
seed uint
Результат Duel

End() публичный Метод

public End ( ) : void
Результат void

GetNativePtr() публичный Метод

public GetNativePtr ( ) : IntPtr
Результат System.IntPtr

InitPlayers() публичный Метод

public InitPlayers ( int startLp, int startHand, int drawCount ) : void
startLp int
startHand int
drawCount int
Результат void

Process() публичный Метод

public Process ( ) : int
Результат int

QueryCard() публичный Метод

public QueryCard ( int player, int location, int sequence, int flag ) : byte[]
player int
location int
sequence int
flag int
Результат byte[]

QueryFieldCard() публичный Метод

public QueryFieldCard ( int player, CardLocation location, int flag, bool useCache ) : byte[]
player int
location CardLocation
flag int
useCache bool
Результат byte[]

QueryFieldCount() публичный Метод

public QueryFieldCount ( int player, CardLocation location ) : int
player int
location CardLocation
Результат int

QueryFieldInfo() публичный Метод

public QueryFieldInfo ( ) : byte[]
Результат byte[]

SetAnalyzer() публичный Метод

public SetAnalyzer ( Func analyzer ) : void
analyzer Func
Результат void

SetErrorHandler() публичный Метод

public SetErrorHandler ( Action errorHandler ) : void
errorHandler Action
Результат void

SetResponse() публичный Метод

public SetResponse ( byte resp ) : void
resp byte
Результат void

SetResponse() публичный Метод

public SetResponse ( int resp ) : void
resp int
Результат void

Start() публичный Метод

public Start ( int options ) : void
options int
Результат void