C# Class WebGame.GameHub

Inheritance: Microsoft.AspNet.SignalR.Hub
Show file Open project: AdmiralPotato/ggj2013

Public Methods

Method Description
Disconnecting ( int gameId, int shipId ) : System.Threading.Tasks.Task
OnConnected ( ) : System.Threading.Tasks.Task
OnDisconnected ( ) : System.Threading.Tasks.Task
OnReconnected ( ) : System.Threading.Tasks.Task
Refresh ( string group ) : void
SendMessage ( string sessionKey, int sourceId, string sourceName, string text ) : void
SendNotification ( string sessionKey, string title, string text, string targetUri = "" ) : void
SendUpdate ( int gameId, int shipId, UpdateToClient update ) : void
SetShip ( int gameId, int shipId, bool useGroups ) : System.Threading.Tasks.Task
TestThrow ( ) : void

Private Methods

Method Description
GetShipGroupName ( int gameId, int shipId ) : string
Say ( Game game, Ship ship, string message ) : void

Method Details

Disconnecting() public method

public Disconnecting ( int gameId, int shipId ) : System.Threading.Tasks.Task
gameId int
shipId int
return System.Threading.Tasks.Task

OnConnected() public method

public OnConnected ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnDisconnected() public method

public OnDisconnected ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnReconnected() public method

public OnReconnected ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Refresh() public static method

public static Refresh ( string group ) : void
group string
return void

SendMessage() public static method

public static SendMessage ( string sessionKey, int sourceId, string sourceName, string text ) : void
sessionKey string
sourceId int
sourceName string
text string
return void

SendNotification() public static method

public static SendNotification ( string sessionKey, string title, string text, string targetUri = "" ) : void
sessionKey string
title string
text string
targetUri string
return void

SendUpdate() public static method

public static SendUpdate ( int gameId, int shipId, UpdateToClient update ) : void
gameId int
shipId int
update UpdateToClient
return void

SetShip() public method

public SetShip ( int gameId, int shipId, bool useGroups ) : System.Threading.Tasks.Task
gameId int
shipId int
useGroups bool
return System.Threading.Tasks.Task

TestThrow() public method

public TestThrow ( ) : void
return void