Beamable SDK
All Classes Namespaces Functions Variables Properties Events
Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
GameSession Class Reference
Inheritance diagram for GameSession:
Inheritance graph
[legend]
Collaboration diagram for GameSession:
Collaboration graph
[legend]

Public Member Functions

void OnInit (RelayState state)
 
void OnConnect (RelayPlayer player)
 
void OnDisconnect (RelayPlayer player)
 
int GetPlayerIndex (GamePlayer player)
 
PlayerReadyEvent CreateNewPlayerEvent (PlayerResponse response)
 
void DeclareVictory ()
 
void FritterAway ()
 
void MoveCharacter (Vector3Int targetGridPosition)
 
void RaiseShield ()
 
void ShootArrow (Vector3Int targetGridPosition)
 
void ShootFireball (Vector3Int targetGridPosition)
 
void PlayerIsReady ()
 
void PlayerIsNotReady ()
 
IEnumerable< Vector3Int > GridNeighbors ()
 

Public Attributes

GamePlayer PlayerPrefab
 
Fireball FireballPrefab
 
Arrow ArrowPrefab
 
TextMeshProUGUI TxtDebug
 
BattleGrid Grid
 
PlayerInputStateMachine playerInput
 
GameOverController gameOver
 
MatchMakingUI mUI
 
TurnTimer timer
 
int TurnNumber = 1
 
UnityEvent negativeSoundEvent
 
int pointsForSurviving
 
int pointsPerKill
 
RelaySession session
 
RelayState state
 
string Seed => state.seed
 
readonly List< GamePlayergamePlayers = new List<GamePlayer>()
 
List< Component > playerComponents = new List<Component>()
 
bool SOLO_MODE
 

Static Public Attributes

const string LEADERBOARD_NAME = "leaderboards.rankings"
 

Properties

static GameSession Instance [get]
 
GamePlayer Myself [get]
 

The documentation for this class was generated from the following file: