Files
landing/src/types/proto.ts

46 lines
800 B
TypeScript

export interface ProtoField {
id: number;
name: string;
type: string;
optional: boolean;
description: string;
}
export interface ProtoPacket {
name: string;
id: number;
description: string;
yaml: string;
fields: ProtoField[];
}
export interface ProtoType {
name: string;
description: string;
yaml: string;
fields: ProtoField[];
}
export interface ProtoEnumValue {
id: number;
name: string;
description: string;
}
export interface ProtoEnum {
name: string;
type: string;
description: string;
yaml: string;
values: ProtoEnumValue[];
}
export interface ProtoLayer {
version: number;
description: string;
source: string;
enums: ProtoEnum[];
types: ProtoType[];
packets: ProtoPacket[];
}