feat: add `get.event<T>(key?: string): Event | T`.

Giving argument, it will return value to the key of current event.
Otherwise it will return the event itself.
This commit is contained in:
Rintim 2023-10-11 20:43:41 +08:00
parent 2dd55293d2
commit 39a95d8646
No known key found for this signature in database
GPG Key ID: BE9E1EA615BACFCF
1 changed files with 1 additions and 0 deletions

View File

@ -58513,6 +58513,7 @@
} }
return card; return card;
}, },
event:key=>key?_status.event[key]:_status.event,
player:()=>_status.event.player, player:()=>_status.event.player,
players:(sort,dead,out)=>{ players:(sort,dead,out)=>{
var players=game.players.slice(0); var players=game.players.slice(0);