X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=doc%2FARCHITECTURE.txt;h=da2fc8f044a428c6464babbee4062d4d371fd3e6;hb=9cca3b21eb54b1c6c14610b93e7a3dc5fa362cc1;hp=807c5fbee9dbd1e229ee80f02c876732858ab75f;hpb=26a3f0413e699fd4c0e10f88d2696cad9e051c07;p=brisk.git diff --git a/doc/ARCHITECTURE.txt b/doc/ARCHITECTURE.txt index 807c5fb..da2fc8f 100644 --- a/doc/ARCHITECTURE.txt +++ b/doc/ARCHITECTURE.txt @@ -1,7 +1,47 @@ Sparse documentation about Brisk. +==== brisk/table/user relationships ==== + +=== points management === + +read from db: + * continue a match + * calculate placings + * calculate explain + +write to db: + * finish a game + +=== in the room === + +// when standup +bri->user[user_idx] = user +user->idx = user_idx +user->idx_orig = user_idx + +// when sitdown +table->player[player_idx] = user_idx +user->table_pos = player_idx + +=== in the game === + +bin5->user[user_idx] = user +table->player[player_idx] = user_idx +user->table_pos = player_idx + + Many things aren't documented at all, but I start with authentication workflow. +==== MODIFY USERS TABLE ==== + +=== PHP CODE === + +web/Obj/dbase_base.phh + function LoginDBItem -> args & body + function LoginDBItemFromRecord -> args & body + +=== SQL CODE === +sql/sql.d/nnn-name-patch.sql AUTHENTICATION WORKFLOW @@ -28,3 +68,17 @@ index.php: window.onunload = null; document.location.assign("../index.php");" in user->comm var for client xhr - set $bri->the_end = TRUE + + +-> index.php (after verify session value: ~L250) + - garbage_manager(TRUE) + - align many status var with briskin5 user values + - room_join_wakeup() + +==== Chunk flow ==== + + +$ret = $user->maincheck($old_stat, $old_subst, $old_step, $this->rd_stat, $this->rd_subst, $this->rd_step, + $splashdate, $table_idx, $table_token)) +$user->rd_transp->chunk($this->rd_scristp++, $ret); +