mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-03 01:18:07 +00:00
feat(ping): add Ping.ts with PingType and PingPlacedEvent definitions
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { TileRef } from "./GameMap";
|
||||
|
||||
export enum PingType {
|
||||
Attack,
|
||||
Retreat,
|
||||
Defend,
|
||||
WatchOut,
|
||||
}
|
||||
|
||||
export class Ping {
|
||||
constructor(
|
||||
public type: PingType,
|
||||
public tile: TileRef,
|
||||
) {}
|
||||
}
|
||||
|
||||
export class PingPlacedEvent extends Ping {}
|
||||
Reference in New Issue
Block a user