mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 00:54:14 +02:00
add encoder for gameEvent
This commit is contained in:
parent
55abaaff7a
commit
2e43f5bb7f
9 changed files with 802 additions and 118 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import {GameEvent} from './GameEventTypes';
|
||||
import {GameEventType} from './GameEventTypes';
|
||||
|
||||
export interface GameEventDefinition<T extends GameEvent['name']> {
|
||||
export interface GameEventDefinition<T extends GameEventType> {
|
||||
id: number;
|
||||
name: T;
|
||||
entries: GameEventEntry[];
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -20,8 +20,8 @@ import {Weapon} from './Weapon';
|
|||
import {World} from './World';
|
||||
import {Round} from './Round';
|
||||
import {Chat} from './Chat';
|
||||
import {GameEvent} from './GameEventTypes';
|
||||
import {Packet} from './Packet';
|
||||
import {GameEventType} from './GameEventTypes';
|
||||
|
||||
export class Match {
|
||||
public tick: number = 0;
|
||||
|
|
@ -32,7 +32,7 @@ export class Match {
|
|||
public startTick: number = 0;
|
||||
public intervalPerTick: number = 0;
|
||||
public staticBaseLines: BitStream[] = [];
|
||||
public eventDefinitions: Map<number, GameEventDefinition<GameEvent['name']>> = new Map();
|
||||
public eventDefinitions: Map<number, GameEventDefinition<GameEventType>> = new Map();
|
||||
public world: World = {
|
||||
boundaryMin: {x: 0, y: 0, z: 0},
|
||||
boundaryMax: {x: 0, y: 0, z: 0},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue