C# Класс Octgn.Server.Handler

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

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

Метод Описание
AddMarkerReq ( int card, System.Guid id, string name, ushort count, ushort oldCount, bool isScriptChange ) : void
AddPacksReq ( System.Guid packs, bool selfOnly ) : void
Binary ( ) : void
Boot ( byte player, string reason ) : void
CancelLimitedReq ( ) : void
CardSwitchTo ( byte uid, int c, string alternate ) : void
ChatReq ( string text ) : void
CounterReq ( int counter, int value, bool isScriptChange ) : void
CreateAliasDeprecated ( int arg0, ulong ulongs ) : void
CreateCard ( int id, System.Guid type, string size, int @group ) : void
CreateCardAt ( int id, System.Guid modelId, int x, int y, bool faceUp, bool persist ) : void
DeleteCard ( int cardId, byte playerId ) : void
DontTakeReq ( int id, byte toPlayer ) : void
Error ( string msg ) : void
Filter ( int card, string color ) : void
FreezeCardsVisibility ( int group ) : void
GameState ( byte player, string state ) : void
GameStateReq ( byte toPlayer ) : void
GroupVisAddReq ( int gId, byte pId ) : void
GroupVisRemoveReq ( int gId, byte pId ) : void
GroupVisReq ( int id, bool defined, bool visible ) : void
Hello ( string nick, ulong pkey, string client, System.Version clientVer, System.Version octgnVer, System.Guid lGameId, System.Version gameVer, string password, bool spectator ) : void
HelloAgain ( byte pid, string nick, ulong pkey, string client, System.Version clientVer, System.Version octgnVer, System.Guid lGameId, System.Version gameVer, string password ) : void
Highlight ( int card, string color ) : void
IsTableBackgroundFlipped ( bool isFlipped ) : void
Leave ( byte player ) : void
LoadDeck ( int id, System.Guid type, int @group, string size, string sleeveString, bool limited ) : void
LookAtBottomReq ( int uid, int gId, int count, bool look ) : void
LookAtReq ( int uid, int gId, bool look ) : void
LookAtTopReq ( int uid, int gId, int count, bool look ) : void
MoveCardAtReq ( int card, int x, int y, int idx, bool isScriptMove, bool faceUp ) : void
MoveCardReq ( int id, int to, int idx, bool faceUp, bool isScriptMove ) : void
NextTurn ( byte nextPlayer, bool force ) : void
NickReq ( string nick ) : void
PassToReq ( int id, byte player, bool requested ) : void
PeekReq ( int card ) : void
PlaySound ( byte player, string soundName ) : void
PlayerSetGlobalVariable ( byte p, string name, string oldvalue, string value ) : void
PlayerSettings ( byte player, bool invertedTable, bool spectator ) : void
PrintReq ( string text ) : void
RandomReq ( int min, int max ) : void
Ready ( byte player ) : void
RemoteCall ( byte player, string func, string args ) : void
RemoveMarkerReq ( int card, Guid id, string name, ushort count, ushort oldCount, bool isScriptChange ) : void
ResetCardProperties ( int card, byte player ) : void
ResetReq ( ) : void
RotateReq ( int card, CardOrientation rot ) : void
SetBoard ( string name ) : void
SetGlobalVariable ( string name, string oldvalue, string value ) : void
SetPhase ( byte phase, byte nextPhase, bool force ) : void
SetPlayerColor ( byte player, string colorHex ) : void
Settings ( bool twoSidedTable, bool allowSpectators, bool muteSpectators ) : void
ShuffleDeprecated ( int arg0, int ints ) : void
Shuffled ( byte player, int group, int card, short pos ) : void
Start ( ) : void
StartLimitedReq ( Guid packs ) : void
StopPhaseReq ( int lTurnNumber, byte phase, bool stop ) : void
StopTurnReq ( int lTurnNumber, bool stop ) : void
TakeFromReq ( int id, byte fromPlayer ) : void
TargetArrowReq ( int card, int otherCard, bool isScriptChange ) : void
TargetReq ( int card, bool isScriptChange ) : void
TransferMarkerReq ( int from, int to, Guid id, string name, ushort count, ushort oldCount, bool isScriptChange ) : void
TurnReq ( int card, bool up ) : void
UnaliasDeprecated ( int arg0, ulong ulongs ) : void
UnaliasGrpDeprecated ( int arg0 ) : void
UntargetReq ( int card, bool isScriptChange ) : void

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

Метод Описание
AnchorCard ( int card, byte player, bool anchor ) : void
ErrorAndCloseConnection ( string message ) : void
GetServerVersion ( ) : System.Version
Handler ( ) : System
Ping ( ) : void
ReceiveMessage ( byte data, ServerSocket con ) : void
SetCardProperty ( int card, byte player, string name, string val, string valtype ) : void
SetupHandler ( ServerSocket con ) : void
ValidateHello ( string nick, ulong pkey, string client, Version clientVer, Version octgnVer, Guid lGameId, Version gameVer, string password, bool spectator ) : bool

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

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

public AddMarkerReq ( int card, System.Guid id, string name, ushort count, ushort oldCount, bool isScriptChange ) : void
card int
id System.Guid
name string
count ushort
oldCount ushort
isScriptChange bool
Результат void

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

public AddPacksReq ( System.Guid packs, bool selfOnly ) : void
packs System.Guid
selfOnly bool
Результат void

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

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

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

public Boot ( byte player, string reason ) : void
player byte
reason string
Результат void

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

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

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

public CardSwitchTo ( byte uid, int c, string alternate ) : void
uid byte
c int
alternate string
Результат void

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

public ChatReq ( string text ) : void
text string
Результат void

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

public CounterReq ( int counter, int value, bool isScriptChange ) : void
counter int
value int
isScriptChange bool
Результат void

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

public CreateAliasDeprecated ( int arg0, ulong ulongs ) : void
arg0 int
ulongs ulong
Результат void

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

public CreateCard ( int id, System.Guid type, string size, int @group ) : void
id int
type System.Guid
size string
@group int
Результат void

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

public CreateCardAt ( int id, System.Guid modelId, int x, int y, bool faceUp, bool persist ) : void
id int
modelId System.Guid
x int
y int
faceUp bool
persist bool
Результат void

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

public DeleteCard ( int cardId, byte playerId ) : void
cardId int
playerId byte
Результат void

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

public DontTakeReq ( int id, byte toPlayer ) : void
id int
toPlayer byte
Результат void

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

public Error ( string msg ) : void
msg string
Результат void

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

public Filter ( int card, string color ) : void
card int
color string
Результат void

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

public FreezeCardsVisibility ( int group ) : void
group int
Результат void

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

public GameState ( byte player, string state ) : void
player byte
state string
Результат void

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

public GameStateReq ( byte toPlayer ) : void
toPlayer byte
Результат void

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

public GroupVisAddReq ( int gId, byte pId ) : void
gId int
pId byte
Результат void

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

public GroupVisRemoveReq ( int gId, byte pId ) : void
gId int
pId byte
Результат void

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

public GroupVisReq ( int id, bool defined, bool visible ) : void
id int
defined bool
visible bool
Результат void

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

public Hello ( string nick, ulong pkey, string client, System.Version clientVer, System.Version octgnVer, System.Guid lGameId, System.Version gameVer, string password, bool spectator ) : void
nick string
pkey ulong
client string
clientVer System.Version
octgnVer System.Version
lGameId System.Guid
gameVer System.Version
password string
spectator bool
Результат void

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

public HelloAgain ( byte pid, string nick, ulong pkey, string client, System.Version clientVer, System.Version octgnVer, System.Guid lGameId, System.Version gameVer, string password ) : void
pid byte
nick string
pkey ulong
client string
clientVer System.Version
octgnVer System.Version
lGameId System.Guid
gameVer System.Version
password string
Результат void

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

public Highlight ( int card, string color ) : void
card int
color string
Результат void

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

public IsTableBackgroundFlipped ( bool isFlipped ) : void
isFlipped bool
Результат void

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

public Leave ( byte player ) : void
player byte
Результат void

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

public LoadDeck ( int id, System.Guid type, int @group, string size, string sleeveString, bool limited ) : void
id int
type System.Guid
@group int
size string
sleeveString string
limited bool
Результат void

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

public LookAtBottomReq ( int uid, int gId, int count, bool look ) : void
uid int
gId int
count int
look bool
Результат void

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

public LookAtReq ( int uid, int gId, bool look ) : void
uid int
gId int
look bool
Результат void

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

public LookAtTopReq ( int uid, int gId, int count, bool look ) : void
uid int
gId int
count int
look bool
Результат void

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

public MoveCardAtReq ( int card, int x, int y, int idx, bool isScriptMove, bool faceUp ) : void
card int
x int
y int
idx int
isScriptMove bool
faceUp bool
Результат void

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

public MoveCardReq ( int id, int to, int idx, bool faceUp, bool isScriptMove ) : void
id int
to int
idx int
faceUp bool
isScriptMove bool
Результат void

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

public NextTurn ( byte nextPlayer, bool force ) : void
nextPlayer byte
force bool
Результат void

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

public NickReq ( string nick ) : void
nick string
Результат void

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

public PassToReq ( int id, byte player, bool requested ) : void
id int
player byte
requested bool
Результат void

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

public PeekReq ( int card ) : void
card int
Результат void

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

public PlaySound ( byte player, string soundName ) : void
player byte
soundName string
Результат void

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

public PlayerSetGlobalVariable ( byte p, string name, string oldvalue, string value ) : void
p byte
name string
oldvalue string
value string
Результат void

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

public PlayerSettings ( byte player, bool invertedTable, bool spectator ) : void
player byte
invertedTable bool
spectator bool
Результат void

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

public PrintReq ( string text ) : void
text string
Результат void

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

public RandomReq ( int min, int max ) : void
min int
max int
Результат void

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

public Ready ( byte player ) : void
player byte
Результат void

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

public RemoteCall ( byte player, string func, string args ) : void
player byte
func string
args string
Результат void

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

public RemoveMarkerReq ( int card, Guid id, string name, ushort count, ushort oldCount, bool isScriptChange ) : void
card int
id Guid
name string
count ushort
oldCount ushort
isScriptChange bool
Результат void

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

public ResetCardProperties ( int card, byte player ) : void
card int
player byte
Результат void

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

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

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

public RotateReq ( int card, CardOrientation rot ) : void
card int
rot CardOrientation
Результат void

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

public SetBoard ( string name ) : void
name string
Результат void

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

public SetGlobalVariable ( string name, string oldvalue, string value ) : void
name string
oldvalue string
value string
Результат void

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

public SetPhase ( byte phase, byte nextPhase, bool force ) : void
phase byte
nextPhase byte
force bool
Результат void

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

public SetPlayerColor ( byte player, string colorHex ) : void
player byte
colorHex string
Результат void

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

public Settings ( bool twoSidedTable, bool allowSpectators, bool muteSpectators ) : void
twoSidedTable bool
allowSpectators bool
muteSpectators bool
Результат void

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

public ShuffleDeprecated ( int arg0, int ints ) : void
arg0 int
ints int
Результат void

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

public Shuffled ( byte player, int group, int card, short pos ) : void
player byte
group int
card int
pos short
Результат void

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

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

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

public StartLimitedReq ( Guid packs ) : void
packs Guid
Результат void

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

public StopPhaseReq ( int lTurnNumber, byte phase, bool stop ) : void
lTurnNumber int
phase byte
stop bool
Результат void

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

public StopTurnReq ( int lTurnNumber, bool stop ) : void
lTurnNumber int
stop bool
Результат void

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

public TakeFromReq ( int id, byte fromPlayer ) : void
id int
fromPlayer byte
Результат void

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

public TargetArrowReq ( int card, int otherCard, bool isScriptChange ) : void
card int
otherCard int
isScriptChange bool
Результат void

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

public TargetReq ( int card, bool isScriptChange ) : void
card int
isScriptChange bool
Результат void

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

public TransferMarkerReq ( int from, int to, Guid id, string name, ushort count, ushort oldCount, bool isScriptChange ) : void
from int
to int
id Guid
name string
count ushort
oldCount ushort
isScriptChange bool
Результат void

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

public TurnReq ( int card, bool up ) : void
card int
up bool
Результат void

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

public UnaliasDeprecated ( int arg0, ulong ulongs ) : void
arg0 int
ulongs ulong
Результат void

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

public UnaliasGrpDeprecated ( int arg0 ) : void
arg0 int
Результат void

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

public UntargetReq ( int card, bool isScriptChange ) : void
card int
isScriptChange bool
Результат void