Add persistent dark mode and server-assigned content IDs
This commit is contained in:
+44
-4
@@ -3,6 +3,7 @@ export interface Protocol {
|
||||
catalog?: ContentCatalog;
|
||||
catalogChange?: ContentChange;
|
||||
catalogPreview?: ContentPreview;
|
||||
catalogResult?: ContentResult;
|
||||
intent: Intent;
|
||||
snapshot: Snapshot;
|
||||
}
|
||||
@@ -80,17 +81,51 @@ export interface TitleEffects {
|
||||
}
|
||||
|
||||
export interface ContentChange {
|
||||
effectSet?: EffectSet;
|
||||
effectSet?: EffectSetDraft;
|
||||
effectSetIds?: string[];
|
||||
expectedVersion: number;
|
||||
id: string;
|
||||
item?: ItemDefinition;
|
||||
item?: ItemDraft;
|
||||
op: string;
|
||||
reason: string;
|
||||
requirementSet?: RequirementSet;
|
||||
requirementSet?: RequirementSetDraft;
|
||||
requirementSetIds?: string[];
|
||||
stats?: ContentStatsRules;
|
||||
title?: TitleDefinition;
|
||||
title?: TitleDraft;
|
||||
}
|
||||
|
||||
export interface EffectSetDraft {
|
||||
description: string;
|
||||
id?: string;
|
||||
modifiers: StatModifier[];
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface ItemDraft {
|
||||
description: string;
|
||||
dropChance: number;
|
||||
id?: string;
|
||||
modifiers: StatModifier[];
|
||||
name: string;
|
||||
requirements: ItemRequirements;
|
||||
slot: string;
|
||||
weight: number;
|
||||
}
|
||||
|
||||
export interface RequirementSetDraft {
|
||||
description: string;
|
||||
id?: string;
|
||||
name: string;
|
||||
requirements: ContentRequirement[];
|
||||
}
|
||||
|
||||
export interface TitleDraft {
|
||||
description: string;
|
||||
effects: TitleEffects;
|
||||
id?: string;
|
||||
name: string;
|
||||
requirements: ContentRequirement[];
|
||||
scope: string;
|
||||
}
|
||||
|
||||
export interface ContentPreview {
|
||||
@@ -99,6 +134,11 @@ export interface ContentPreview {
|
||||
resolved: ContentChange;
|
||||
}
|
||||
|
||||
export interface ContentResult {
|
||||
id: string;
|
||||
version: number;
|
||||
}
|
||||
|
||||
export interface Intent {
|
||||
op: string;
|
||||
seq: number;
|
||||
|
||||
Reference in New Issue
Block a user