Skip to content

Commit

Permalink
add resign commands
Browse files Browse the repository at this point in the history
  • Loading branch information
h3902340 committed Dec 4, 2023
1 parent 623ec3e commit d73873e
Show file tree
Hide file tree
Showing 5 changed files with 413 additions and 180 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test": "jest"
},
"name": "@canyougiant/aoe3de-replay-parser",
"version": "1.5.0",
"version": "1.6.0",
"description": "Parsing Age3Yrec file of AOE3DE",
"repository": {
"type": "git",
Expand Down
10 changes: 10 additions & 0 deletions src/dataStructures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,23 @@ export interface Deck {
techIds: number[],
}

export interface Commands {
chat: Message[],
resigns: Resign[],
}

export interface Message {
fromId: number,
toId: number,
message: string,
time: number,
}

export interface Resign {
slotId: number,
time: number,
}

export interface MapInfo {
id: number;
idStr: string;
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { CivInfo } from "./constant";
import { Deck, GameSetting, Message, Player, Replay, Team } from "./dataStructures";
import { parseChat } from "./parseChat";
import { parseCommand } from "./parseCommand";
import { parseDeck } from "./parseDeck";
import { parseField } from "./parseField";
import { parseReplay } from "./parseReplay";
import { parseTeam } from "./parseTeam";

export {
parseChat,
parseCommand,
parseDeck,
parseField,
parseReplay,
Expand Down
177 changes: 0 additions & 177 deletions src/parseChat.ts

This file was deleted.

Loading

0 comments on commit d73873e

Please sign in to comment.