Where can I find a list of BGA Frameworks static methods

Game development with Board Game Arena Studio
Post Reply
User avatar
MutantPigeon24
Posts: 33
Joined: 20 September 2021, 20:49

Where can I find a list of BGA Frameworks static methods

Post by MutantPigeon24 »

Hi all :)

I noticed there are a lot of really helpful methods that get pulled in when you are running your game in the BGA environment.
Examples:
  • clienttranslate
  • notifyAllPlayers
  • DbQuery
  • getCollectionFromDb
  • giveExtraTime
  • getActivePlayerName
  • activeNextPlayer
I'm sure there are many more that I'm unaware of :oops:
Is there a wiki page listing them? Or better yet, an interface we can implement on the dev side to get some intellisence with docs and argument/param explanations?
User avatar
robinzig
Posts: 461
Joined: 11 February 2021, 18:23

Re: Where can I find a list of BGA Frameworks static methods

Post by robinzig »

The closest thing I know of is this. But it's not ideal, in that:
- there's no proper documentation of each method (although some have links to other documentation pages with more detail, others have more or less nothing)
- it doesn't say whether they're static or not
- it doesn't include things like clienttranslate which appear to be global functions rather than methods (static or otherwise) of a class
User avatar
MutantPigeon24
Posts: 33
Joined: 20 September 2021, 20:49

Re: Where can I find a list of BGA Frameworks static methods

Post by MutantPigeon24 »

robinzig wrote: 27 September 2021, 22:53 The closest thing I know of is this. But it's not ideal, in that:
- there's no proper documentation of each method (although some have links to other documentation pages with more detail, others have more or less nothing)
- it doesn't say whether they're static or not
- it doesn't include things like clienttranslate which appear to be global functions rather than methods (static or otherwise) of a class
Hi robinzig :) Any extra info helps...
Its not perfect, but it's infinitely better than what I had before :D

Thank you
User avatar
Tisaac
Posts: 2743
Joined: 26 August 2014, 21:28

Re: Where can I find a list of BGA Frameworks static methods

Post by Tisaac »

Bunch of stubs here :
https://github.com/elaskavaia/bga-share ... e.game.php

Can't find the other git repo with even more stubs.
User avatar
MutantPigeon24
Posts: 33
Joined: 20 September 2021, 20:49

Re: Where can I find a list of BGA Frameworks static methods

Post by MutantPigeon24 »

Tisaac wrote: 28 September 2021, 11:32 Bunch of stubs here :
https://github.com/elaskavaia/bga-share ... e.game.php

Can't find the other git repo with even more stubs.
Awesome stuff Tisaac :D

I can hopefully pop this in as an abstract class or interface and have the actual Table class handle the implementation.

Thank you so much
Post Reply

Return to “Developers”