2022-04-14 18:22:00 +08:00
|
|
|
var Card = {
|
2022-04-30 15:27:56 +08:00
|
|
|
Unknown : 0,
|
|
|
|
PlayerHand : 1,
|
|
|
|
PlayerEquip : 2,
|
|
|
|
PlayerJudge : 3,
|
|
|
|
PlayerSpecial : 4,
|
|
|
|
Processing : 5,
|
|
|
|
DrawPile : 6,
|
|
|
|
DiscardPile : 7,
|
|
|
|
Void : 8
|
2022-04-14 18:22:00 +08:00
|
|
|
}
|
|
|
|
|
2022-03-23 19:40:28 +08:00
|
|
|
function arrangePhotos() {
|
2022-04-30 15:27:56 +08:00
|
|
|
/* Layout of photos:
|
|
|
|
* +---------------+
|
|
|
|
* | 6 5 4 3 2 |
|
|
|
|
* | 7 1 |
|
|
|
|
* | dashboard |
|
|
|
|
* +---------------+
|
|
|
|
*/
|
|
|
|
|
|
|
|
const photoWidth = 175;
|
|
|
|
const roomAreaPadding = 10;
|
|
|
|
let verticalPadding = Math.max(10, roomArea.width * 0.01);
|
|
|
|
let horizontalSpacing = Math.max(30, roomArea.height * 0.1);
|
|
|
|
let verticalSpacing = (roomArea.width - photoWidth * 7 - verticalPadding * 2) / 6;
|
|
|
|
|
|
|
|
// Position 1-7
|
|
|
|
const regions = [
|
|
|
|
{ x: verticalPadding + (photoWidth + verticalSpacing) * 6, y: roomAreaPadding + horizontalSpacing * 2 },
|
|
|
|
{ x: verticalPadding + (photoWidth + verticalSpacing) * 5, y: roomAreaPadding + horizontalSpacing },
|
|
|
|
{ x: verticalPadding + (photoWidth + verticalSpacing) * 4, y: roomAreaPadding },
|
|
|
|
{ x: verticalPadding + (photoWidth + verticalSpacing) * 3, y: roomAreaPadding },
|
|
|
|
{ x: verticalPadding + (photoWidth + verticalSpacing) * 2, y: roomAreaPadding },
|
|
|
|
{ x: verticalPadding + photoWidth + verticalSpacing, y: roomAreaPadding + horizontalSpacing },
|
|
|
|
{ x: verticalPadding, y: roomAreaPadding + horizontalSpacing * 2 },
|
|
|
|
];
|
|
|
|
|
|
|
|
const regularSeatIndex = [
|
|
|
|
[4],
|
|
|
|
[3, 5],
|
|
|
|
[1, 4, 7],
|
|
|
|
[1, 3, 5, 7],
|
|
|
|
[1, 3, 4, 5, 7],
|
|
|
|
[1, 2, 3, 5, 6, 7],
|
|
|
|
[1, 2, 3, 4, 5, 6, 7],
|
|
|
|
];
|
|
|
|
let seatIndex = regularSeatIndex[playerNum - 2];
|
|
|
|
|
|
|
|
let item, region, i;
|
|
|
|
|
|
|
|
for (i = 0; i < playerNum - 1; i++) {
|
|
|
|
item = photos.itemAt(i);
|
|
|
|
if (!item)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
region = regions[seatIndex[photoModel.get(i).index] - 1];
|
|
|
|
item.x = region.x;
|
|
|
|
item.y = region.y;
|
|
|
|
}
|
2022-03-23 19:40:28 +08:00
|
|
|
}
|
2022-03-24 21:23:42 +08:00
|
|
|
|
2022-04-02 15:11:13 +08:00
|
|
|
function doOkButton() {
|
2022-04-30 15:27:56 +08:00
|
|
|
if (roomScene.state == "playing") {
|
|
|
|
replyToServer(JSON.stringify(
|
|
|
|
{
|
|
|
|
card: dashboard.getSelectedCard(),
|
|
|
|
targets: selected_targets
|
|
|
|
}
|
|
|
|
));
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
replyToServer("1");
|
2022-04-02 15:11:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function doCancelButton() {
|
2022-04-30 15:27:56 +08:00
|
|
|
replyToServer("");
|
2022-04-02 15:11:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function replyToServer(jsonData) {
|
2022-04-30 15:27:56 +08:00
|
|
|
roomScene.state = "notactive";
|
|
|
|
ClientInstance.replyToServer("", jsonData);
|
2022-04-02 15:11:13 +08:00
|
|
|
}
|
|
|
|
|
2022-04-14 18:22:00 +08:00
|
|
|
function getPhotoModel(id) {
|
2022-04-30 15:27:56 +08:00
|
|
|
for (let i = 0; i < photoModel.count; i++) {
|
|
|
|
let item = photoModel.get(i);
|
|
|
|
if (item.id === id) {
|
|
|
|
return item;
|
2022-04-14 18:22:00 +08:00
|
|
|
}
|
2022-04-30 15:27:56 +08:00
|
|
|
}
|
|
|
|
return undefined;
|
2022-04-14 18:22:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function getPhoto(id) {
|
2022-04-30 15:27:56 +08:00
|
|
|
for (let i = 0; i < photoModel.count; i++) {
|
|
|
|
let item = photoModel.get(i);
|
|
|
|
if (item.id === id) {
|
|
|
|
return photos.itemAt(i);
|
2022-04-14 18:22:00 +08:00
|
|
|
}
|
2022-04-30 15:27:56 +08:00
|
|
|
}
|
|
|
|
return undefined;
|
2022-04-14 18:22:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function getPhotoOrDashboard(id) {
|
2022-04-30 15:27:56 +08:00
|
|
|
let photo = getPhoto(id);
|
|
|
|
if (!photo) {
|
|
|
|
if (id === Self.id)
|
|
|
|
return dashboard;
|
|
|
|
}
|
|
|
|
return photo;
|
2022-04-14 18:22:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function getAreaItem(area, id) {
|
2022-04-30 15:27:56 +08:00
|
|
|
if (area === Card.DrawPile) {
|
|
|
|
return drawPile;
|
|
|
|
} else if (area === Card.DiscardPile || area === Card.Processing) {
|
|
|
|
return tablePile;
|
|
|
|
} else if (area === Card.AG) {
|
|
|
|
return popupBox.item;
|
|
|
|
}
|
|
|
|
|
|
|
|
let photo = getPhotoOrDashboard(id);
|
|
|
|
if (!photo) {
|
2022-04-14 18:22:00 +08:00
|
|
|
return null;
|
2022-04-30 15:27:56 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
if (area === Card.PlayerHand) {
|
|
|
|
return photo.handcardArea;
|
|
|
|
} else if (area === Card.PlayerEquip)
|
|
|
|
return photo.equipArea;
|
|
|
|
else if (area === Card.PlayerJudge)
|
|
|
|
return photo.delayedTrickArea;
|
|
|
|
else if (area === Card.PlayerSpecial)
|
|
|
|
return photo.specialArea;
|
|
|
|
|
|
|
|
return null;
|
2022-04-14 18:22:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function moveCards(moves) {
|
2022-04-30 15:27:56 +08:00
|
|
|
for (let i = 0; i < moves.length; i++) {
|
|
|
|
let move = moves[i];
|
|
|
|
let from = getAreaItem(move.fromArea, move.from);
|
|
|
|
let to = getAreaItem(move.toArea, move.to);
|
|
|
|
if (!from || !to || from === to)
|
|
|
|
continue;
|
|
|
|
let items = from.remove(move.ids);
|
|
|
|
if (items.length > 0)
|
|
|
|
to.add(items);
|
|
|
|
to.updateCardPosition(true);
|
|
|
|
}
|
2022-04-14 18:22:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function setEmotion(id, emotion) {
|
2022-04-30 15:27:56 +08:00
|
|
|
let component = Qt.createComponent("RoomElement/PixmapAnimation.qml");
|
|
|
|
if (component.status !== Component.Ready)
|
|
|
|
return;
|
|
|
|
|
|
|
|
let photo = getPhoto(id);
|
|
|
|
if (!photo) {
|
|
|
|
if (id === dashboardModel.id) {
|
|
|
|
photo = dashboard.self;
|
|
|
|
} else {
|
|
|
|
return null;
|
2022-04-14 18:22:00 +08:00
|
|
|
}
|
2022-04-30 15:27:56 +08:00
|
|
|
}
|
2022-04-14 18:22:00 +08:00
|
|
|
|
2022-04-30 15:27:56 +08:00
|
|
|
let animation = component.createObject(photo, {source: emotion, anchors: {centerIn: photo}});
|
|
|
|
animation.finished.connect(() => animation.destroy());
|
|
|
|
animation.start();
|
2022-04-14 18:22:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function changeHp(id, delta, losthp) {
|
2022-04-30 15:27:56 +08:00
|
|
|
let photo = getPhoto(id);
|
|
|
|
if (!photo) {
|
|
|
|
if (id === dashboardModel.id) {
|
|
|
|
photo = dashboard.self;
|
|
|
|
} else {
|
|
|
|
return null;
|
2022-04-14 18:22:00 +08:00
|
|
|
}
|
2022-04-30 15:27:56 +08:00
|
|
|
}
|
|
|
|
if (delta < 0) {
|
|
|
|
if (!losthp) {
|
|
|
|
setEmotion(id, "damage")
|
|
|
|
photo.tremble()
|
2022-04-14 18:22:00 +08:00
|
|
|
}
|
2022-04-30 15:27:56 +08:00
|
|
|
}
|
2022-04-14 18:22:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function doIndicate(from, tos) {
|
2022-04-30 15:27:56 +08:00
|
|
|
let component = Qt.createComponent("RoomElement/IndicatorLine.qml");
|
|
|
|
if (component.status !== Component.Ready)
|
|
|
|
return;
|
|
|
|
|
|
|
|
let fromItem = getPhotoOrDashboard(from);
|
|
|
|
let fromPos = mapFromItem(fromItem, fromItem.width / 2, fromItem.height / 2);
|
|
|
|
|
|
|
|
let end = [];
|
|
|
|
for (let i = 0; i < tos.length; i++) {
|
|
|
|
if (from === tos[i])
|
|
|
|
continue;
|
|
|
|
let toItem = getPhotoOrDashboard(tos[i]);
|
|
|
|
let toPos = mapFromItem(toItem, toItem.width / 2, toItem.height / 2);
|
|
|
|
end.push(toPos);
|
|
|
|
}
|
|
|
|
|
|
|
|
let color = "#96943D";
|
|
|
|
let line = component.createObject(roomScene, {start: fromPos, end: end, color: color});
|
|
|
|
line.finished.connect(() => line.destroy());
|
|
|
|
line.running = true;
|
2022-04-14 18:22:00 +08:00
|
|
|
}
|
|
|
|
|
2022-03-24 21:23:42 +08:00
|
|
|
callbacks["AddPlayer"] = function(jsonData) {
|
2022-04-30 15:27:56 +08:00
|
|
|
// jsonData: int id, string screenName, string avatar
|
|
|
|
for (let i = 0; i < photoModel.count; i++) {
|
|
|
|
let item = photoModel.get(i);
|
|
|
|
if (item.id === -1) {
|
|
|
|
let data = JSON.parse(jsonData);
|
|
|
|
let uid = data[0];
|
|
|
|
let name = data[1];
|
|
|
|
let avatar = data[2];
|
|
|
|
item.id = uid;
|
|
|
|
item.screenName = name;
|
|
|
|
item.general = avatar;
|
|
|
|
return;
|
2022-03-24 21:23:42 +08:00
|
|
|
}
|
2022-04-30 15:27:56 +08:00
|
|
|
}
|
2022-03-24 21:23:42 +08:00
|
|
|
}
|
|
|
|
|
2022-04-30 15:27:56 +08:00
|
|
|
function enableTargets(card) { // card: int | { skill: string, subcards: int[] }
|
|
|
|
let i = 0;
|
|
|
|
let candidate = (!isNaN(card) && card !== -1) || typeof(card) === "string";
|
|
|
|
let all_photos = [dashboard.self];
|
|
|
|
for (i = 0; i < playerNum - 1; i++) {
|
|
|
|
all_photos.push(photos.itemAt(i))
|
|
|
|
}
|
|
|
|
selected_targets = [];
|
|
|
|
for (i = 0; i < playerNum; i++) {
|
|
|
|
all_photos[i].selected = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (candidate) {
|
|
|
|
let data = {
|
|
|
|
ok_enabled: false,
|
|
|
|
enabled_targets: []
|
2022-03-24 21:23:42 +08:00
|
|
|
}
|
2022-04-30 15:27:56 +08:00
|
|
|
|
|
|
|
all_photos.forEach(photo => {
|
|
|
|
photo.state = "candidate";
|
|
|
|
let id = photo.playerid;
|
|
|
|
let ret = JSON.parse(Backend.callLuaFunction(
|
|
|
|
"CanUseCardToTarget",
|
|
|
|
[card, id, selected_targets]
|
|
|
|
));
|
|
|
|
photo.selectable = ret;
|
|
|
|
})
|
|
|
|
|
|
|
|
okButton.enabled = JSON.parse(Backend.callLuaFunction(
|
|
|
|
"CardFeasible", [card, selected_targets]
|
|
|
|
));
|
|
|
|
} else {
|
|
|
|
all_photos.forEach(photo => {
|
|
|
|
photo.state = "normal";
|
|
|
|
photo.selected = false;
|
|
|
|
});
|
|
|
|
|
|
|
|
okButton.enabled = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function updateSelectedTargets(playerid, selected) {
|
|
|
|
let i = 0;
|
|
|
|
let card = dashboard.getSelectedCard();
|
|
|
|
let all_photos = [dashboard.self]
|
|
|
|
for (i = 0; i < playerNum - 1; i++) {
|
|
|
|
all_photos.push(photos.itemAt(i))
|
|
|
|
}
|
|
|
|
|
|
|
|
if (selected) {
|
|
|
|
selected_targets.push(playerid);
|
|
|
|
} else {
|
|
|
|
selected_targets.splice(selected_targets.indexOf(playerid), 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
all_photos.forEach(photo => {
|
|
|
|
if (photo.selected) return;
|
|
|
|
let id = photo.playerid;
|
|
|
|
let ret = JSON.parse(Backend.callLuaFunction(
|
|
|
|
"CanUseCardToTarget",
|
|
|
|
[card, id, selected_targets]
|
|
|
|
));
|
|
|
|
photo.selectable = ret;
|
|
|
|
})
|
|
|
|
|
|
|
|
okButton.enabled = JSON.parse(Backend.callLuaFunction(
|
|
|
|
"CardFeasible", [card, selected_targets]
|
|
|
|
));
|
|
|
|
}
|
|
|
|
|
|
|
|
callbacks["RemovePlayer"] = function(jsonData) {
|
|
|
|
// jsonData: int uid
|
|
|
|
let uid = JSON.parse(jsonData)[0];
|
|
|
|
let model = getPhotoModel(uid);
|
|
|
|
if (typeof(model) !== "undefined") {
|
|
|
|
model.id = -1;
|
|
|
|
model.screenName = "";
|
|
|
|
model.general = "";
|
|
|
|
}
|
2022-03-24 21:23:42 +08:00
|
|
|
}
|
2022-03-27 14:49:41 +08:00
|
|
|
|
|
|
|
callbacks["RoomOwner"] = function(jsonData) {
|
2022-04-30 15:27:56 +08:00
|
|
|
// jsonData: int uid of the owner
|
|
|
|
let uid = JSON.parse(jsonData)[0];
|
2022-03-30 14:14:40 +08:00
|
|
|
|
2022-04-30 15:27:56 +08:00
|
|
|
if (dashboardModel.id === uid) {
|
|
|
|
dashboardModel.isOwner = true;
|
|
|
|
roomScene.dashboardModelChanged();
|
|
|
|
return;
|
|
|
|
}
|
2022-03-30 14:14:40 +08:00
|
|
|
|
2022-04-30 15:27:56 +08:00
|
|
|
let model = getPhotoModel(uid);
|
|
|
|
if (typeof(model) !== "undefined") {
|
|
|
|
model.isOwner = true;
|
|
|
|
}
|
2022-03-27 14:49:41 +08:00
|
|
|
}
|
2022-03-28 22:24:30 +08:00
|
|
|
|
|
|
|
callbacks["PropertyUpdate"] = function(jsonData) {
|
2022-04-30 15:27:56 +08:00
|
|
|
// jsonData: int id, string property_name, value
|
|
|
|
let data = JSON.parse(jsonData);
|
|
|
|
let uid = data[0];
|
|
|
|
let property_name = data[1];
|
|
|
|
let value = data[2];
|
|
|
|
|
|
|
|
if (Self.id === uid) {
|
|
|
|
dashboardModel[property_name] = value;
|
|
|
|
roomScene.dashboardModelChanged();
|
|
|
|
return;
|
|
|
|
}
|
2022-03-28 22:24:30 +08:00
|
|
|
|
2022-04-30 15:27:56 +08:00
|
|
|
let model = getPhotoModel(uid);
|
|
|
|
if (typeof(model) !== "undefined") {
|
|
|
|
model[property_name] = value;
|
|
|
|
}
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
callbacks["ArrangeSeats"] = function(jsonData) {
|
2022-04-30 15:27:56 +08:00
|
|
|
// jsonData: seat order
|
|
|
|
let order = JSON.parse(jsonData);
|
|
|
|
roomScene.isStarted = true;
|
|
|
|
|
|
|
|
for (let i = 0; i < photoModel.count; i++) {
|
|
|
|
let item = photoModel.get(i);
|
|
|
|
item.seatNumber = order.indexOf(item.id) + 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
dashboardModel.seatNumber = order.indexOf(Self.id) + 1;
|
|
|
|
roomScene.dashboardModelChanged();
|
|
|
|
|
|
|
|
// make Self to the first of list, then reorder photomodel
|
|
|
|
let selfIndex = order.indexOf(Self.id);
|
|
|
|
let after = order.splice(selfIndex);
|
|
|
|
after.push(...order);
|
|
|
|
let photoOrder = after.slice(1);
|
|
|
|
|
|
|
|
for (let i = 0; i < photoModel.count; i++) {
|
|
|
|
let item = photoModel.get(i);
|
|
|
|
item.index = photoOrder.indexOf(item.id);
|
|
|
|
}
|
|
|
|
|
|
|
|
arrangePhotos();
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
2022-03-30 14:14:40 +08:00
|
|
|
|
|
|
|
function cancelAllFocus() {
|
2022-04-30 15:27:56 +08:00
|
|
|
let item;
|
|
|
|
for (let i = 0; i < playerNum - 1; i++) {
|
|
|
|
item = photos.itemAt(i);
|
|
|
|
item.progressBar.visible = false;
|
|
|
|
item.progressTip = "";
|
|
|
|
}
|
2022-03-30 14:14:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
callbacks["MoveFocus"] = function(jsonData) {
|
2022-04-30 15:27:56 +08:00
|
|
|
// jsonData: int[] focuses, string command
|
|
|
|
cancelAllFocus();
|
|
|
|
let data = JSON.parse(jsonData);
|
|
|
|
let focuses = data[0];
|
|
|
|
let command = data[1];
|
|
|
|
|
|
|
|
let item, model;
|
|
|
|
for (let i = 0; i < playerNum - 1; i++) {
|
|
|
|
model = photoModel.get(i);
|
|
|
|
if (focuses.indexOf(model.id) != -1) {
|
|
|
|
item = photos.itemAt(i);
|
|
|
|
item.progressBar.visible = true;
|
|
|
|
item.progressTip = command + " thinking...";
|
2022-03-30 14:14:40 +08:00
|
|
|
}
|
2022-04-30 15:27:56 +08:00
|
|
|
}
|
2022-03-30 14:14:40 +08:00
|
|
|
}
|
|
|
|
|
2022-04-03 06:41:55 +08:00
|
|
|
callbacks["PlayerRunned"] = function(jsonData) {
|
2022-04-30 15:27:56 +08:00
|
|
|
// jsonData: int runner, int robot
|
|
|
|
let data = JSON.parse(jsonData);
|
|
|
|
let runner = data[0];
|
|
|
|
let robot = data[1];
|
|
|
|
|
|
|
|
let model = getPhotoModel(runner);
|
|
|
|
if (typeof(model) !== "undefined") {
|
|
|
|
model.id = robot;
|
|
|
|
}
|
2022-04-03 06:41:55 +08:00
|
|
|
}
|
|
|
|
|
2022-03-30 14:14:40 +08:00
|
|
|
callbacks["AskForGeneral"] = function(jsonData) {
|
2022-04-30 15:27:56 +08:00
|
|
|
// jsonData: string[] Generals
|
|
|
|
// TODO: choose multiple generals
|
|
|
|
let data = JSON.parse(jsonData);
|
|
|
|
roomScene.promptText = "Please choose 1 general";
|
|
|
|
roomScene.state = "replying";
|
|
|
|
roomScene.popupBox.source = "RoomElement/ChooseGeneralBox.qml";
|
|
|
|
let box = roomScene.popupBox.item;
|
|
|
|
box.choiceNum = 1;
|
|
|
|
box.accepted.connect(() => {
|
|
|
|
replyToServer(JSON.stringify([box.choices[0]]));
|
|
|
|
});
|
|
|
|
for (let i = 0; i < data.length; i++)
|
|
|
|
box.generalList.append({ "name": data[i] });
|
|
|
|
box.updatePosition();
|
2022-03-30 14:14:40 +08:00
|
|
|
}
|
2022-04-02 15:11:13 +08:00
|
|
|
|
|
|
|
callbacks["AskForSkillInvoke"] = function(jsonData) {
|
2022-04-30 15:27:56 +08:00
|
|
|
// jsonData: string name
|
|
|
|
roomScene.promptText = "Do you want to invoke '" + jsonData + "' ?";
|
|
|
|
roomScene.state = "responding";
|
2022-04-02 15:11:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
callbacks["AskForChoice"] = function(jsonData) {
|
2022-04-30 15:27:56 +08:00
|
|
|
// jsonData: [ string[] choices, string skill ]
|
|
|
|
// TODO: multiple choices, e.g. benxi_ol
|
|
|
|
let data = JSON.parse(jsonData);
|
|
|
|
let choices = data[0];
|
|
|
|
let skill_name = data[1];
|
|
|
|
roomScene.promptText = skill_name + ": Please make choice";
|
|
|
|
roomScene.state = "replying";
|
|
|
|
roomScene.popupBox.source = "RoomElement/ChoiceBox.qml";
|
|
|
|
let box = roomScene.popupBox.item;
|
|
|
|
box.options = choices;
|
|
|
|
box.skill_name = skill_name;
|
|
|
|
box.accepted.connect(() => {
|
|
|
|
replyToServer(choices[box.result]);
|
|
|
|
});
|
2022-04-02 15:11:13 +08:00
|
|
|
}
|
2022-04-14 18:22:00 +08:00
|
|
|
|
|
|
|
callbacks["MoveCards"] = function(jsonData) {
|
2022-04-30 15:27:56 +08:00
|
|
|
// jsonData: merged moves
|
|
|
|
let moves = JSON.parse(jsonData);
|
|
|
|
moveCards(moves);
|
|
|
|
}
|
|
|
|
|
|
|
|
callbacks["PlayCard"] = function(jsonData) {
|
|
|
|
// jsonData: int playerId
|
|
|
|
let playerId = parseInt(jsonData);
|
|
|
|
if (playerId == Self.id) {
|
|
|
|
roomScene.promptText = "Please use a card";
|
|
|
|
roomScene.state = "playing";
|
|
|
|
}
|
2022-04-14 18:22:00 +08:00
|
|
|
}
|