feat: integrate room framework and isolated subgame bundles

Complete room UI and protocol integration, move game definitions and resources behind bundle entries, publish authoritative version XML, and document single-game builds. Include all current resource changes and experiment artifacts.
This commit is contained in:
2026-09-09 03:13:18 +08:00
parent a7ec8aa6a7
commit 35216f75e7
1028 changed files with 835556 additions and 21415 deletions
@@ -12,3 +12,9 @@ test('owned rooms use legacy cache, order, and server outcome lifecycle',()=>{
history.joined({state:0,isowner:1,roomcode:654321});assert.deepEqual(history.read(),[]);
data.set('tsgame_roomlist_ga','bad');assert.throws(()=>history.read());
});
test('confirmed break removes only returned roomcode and absent roomcode leaves cache intact',()=>{
const data=new Map<string,string>();const history=new OwnedRoomHistory({getItem:k=>data.get(k)??null,setItem:(k,v)=>{data.set(k,v);}},'g','a');
history.exited({isowner:1,roomcode:'123456'},0);history.exited({isowner:1,roomcode:'654321'},0);
history.broken({});assert.deepEqual(history.read(),[654321,123456]);history.broken({roomcode:'123456'});assert.deepEqual(history.read(),[654321]);
});