mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-15 22:29:59 +00:00
game runs in seperate thread
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
import { LitElement, html, css } from 'lit';
|
||||
import { customElement, property, state } from 'lit/decorators.js';
|
||||
import { EventBus, GameEvent } from "../../../core/EventBus";
|
||||
import { EventBus } from "../../../core/EventBus";
|
||||
import {
|
||||
AllianceExpiredEvent,
|
||||
AllianceRequestEvent,
|
||||
AllianceRequestReplyEvent,
|
||||
AllPlayers,
|
||||
BrokeAllianceEvent,
|
||||
EmojiMessageEvent,
|
||||
BrokeAllianceEvent, DisplayMessageEvent, EmojiMessageEvent,
|
||||
Game,
|
||||
Player,
|
||||
PlayerID,
|
||||
TargetPlayerEvent,
|
||||
MessageType,
|
||||
Player, TargetPlayerEvent,
|
||||
UnitEvent
|
||||
} from "../../../core/game/Game";
|
||||
import { ClientID } from "../../../core/Schemas";
|
||||
@@ -20,21 +18,6 @@ import { SendAllianceReplyIntentEvent } from "../../Transport";
|
||||
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
|
||||
import { onlyImages, sanitize } from '../../../core/Util';
|
||||
|
||||
export enum MessageType {
|
||||
SUCCESS,
|
||||
INFO,
|
||||
WARN,
|
||||
ERROR,
|
||||
}
|
||||
|
||||
export class DisplayMessageEvent implements GameEvent {
|
||||
constructor(
|
||||
public readonly message: string,
|
||||
public readonly type: MessageType,
|
||||
public readonly playerID: PlayerID | null = null
|
||||
) { }
|
||||
}
|
||||
|
||||
interface Event {
|
||||
description: string;
|
||||
unsafeDescription?: boolean
|
||||
|
||||
Reference in New Issue
Block a user