C# Class YGOSharp.OCGWrapper.Duel

Afficher le fichier Open project: IceYGO/ygosharp Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
Create ( IntPtr pDuel ) : Duel
Dispose ( ) : void
Duel ( IntPtr duelPtr ) : System
HandleMessage ( BinaryReader reader, byte raw, int len ) : int
OnMessage ( UInt32 messageType ) : void

Method Details

AddCard() public méthode

public AddCard ( int cardId, int owner, CardLocation location ) : void
cardId int
owner int
location CardLocation
Résultat void

AddTagCard() public méthode

public AddTagCard ( int cardId, int owner, CardLocation location ) : void
cardId int
owner int
location CardLocation
Résultat void

Create() public static méthode

public static Create ( uint seed ) : Duel
seed uint
Résultat Duel

End() public méthode

public End ( ) : void
Résultat void

GetNativePtr() public méthode

public GetNativePtr ( ) : IntPtr
Résultat System.IntPtr

InitPlayers() public méthode

public InitPlayers ( int startLp, int startHand, int drawCount ) : void
startLp int
startHand int
drawCount int
Résultat void

Process() public méthode

public Process ( ) : int
Résultat int

QueryCard() public méthode

public QueryCard ( int player, int location, int sequence, int flag ) : byte[]
player int
location int
sequence int
flag int
Résultat byte[]

QueryFieldCard() public méthode

public QueryFieldCard ( int player, CardLocation location, int flag, bool useCache ) : byte[]
player int
location CardLocation
flag int
useCache bool
Résultat byte[]

QueryFieldCount() public méthode

public QueryFieldCount ( int player, CardLocation location ) : int
player int
location CardLocation
Résultat int

QueryFieldInfo() public méthode

public QueryFieldInfo ( ) : byte[]
Résultat byte[]

SetAnalyzer() public méthode

public SetAnalyzer ( Func analyzer ) : void
analyzer Func
Résultat void

SetErrorHandler() public méthode

public SetErrorHandler ( Action errorHandler ) : void
errorHandler Action
Résultat void

SetResponse() public méthode

public SetResponse ( byte resp ) : void
resp byte
Résultat void

SetResponse() public méthode

public SetResponse ( int resp ) : void
resp int
Résultat void

Start() public méthode

public Start ( int options ) : void
options int
Résultat void