pub fn new(ws: WebSocket, my_ws_uid: usize) -> Self {
        let game_data = GameData::new(ws, my_ws_uid);

        let game_rule_01 = RulesAndDescription {};
        let cached_rules_and_description = Cached::new(game_rule_01);
        let players_and_scores = Cached::new(PlayersAndScores::new());

        RootRenderingComponent {
            game_data,
            players_and_scores,
            cached_rules_and_description,
        }
    }
/// Construct a new `RootRenderingComponent` component. Only once at the begining.
Construct a new `RootRenderingComponent` component. Only once at the begining.
Construct a new ` RootRenderingComponent ` component . Only once at the begining .
pub fn new(ws: WebSocket, my_ws_uid: usize) -> Self {
        let game_data = GameData::new(ws, my_ws_uid);
        let game_rule_01 = RulesAndDescription {};
        let cached_rules_and_description = Cached::new(game_rule_01);
        let players_and_scores = Cached::new(PlayersAndScores::new());
        RootRenderingComponent {
            game_data,
            players_and_scores,
            cached_rules_and_description,
        }
    }
pub fn new ( ws : WebSocket , my_ws_uid : usize ) -> Self { let game_data = GameData :: new ( ws , my_ws_uid ) ; let game_rule_01 = RulesAndDescription { } ; let cached_rules_and_description = Cached :: new ( game_rule_01 ) ; let players_and_scores = Cached :: new ( PlayersAndScores :: new ( ) ) ; RootRenderingComponent { game_data , players_and_scores , cached_rules_and_description , } }
Construct a new `RootRenderingComponent` component.
Construct a new ` RootRenderingComponent ` component .
ws
WebSocket
my_ws_uid
usize
ws
WebSocket
my_ws_uid
usize