Skip to content

@lands.io/mod-sdk / ModStateChanges

Interface: ModStateChanges

Structure for dirty changes to be synced. Used internally by the engine for state synchronization.

Table of contents

Properties

Properties

data

Optional data: Record\<string, unknown>


playerColors

Optional playerColors: Record\<string, { border: string ; fill: string }>


playerSkinGridColors

Optional playerSkinGridColors: Record\<string, { color: "blue" | "red" }>


Source Code

View full implementation
/**
 * Structure for dirty changes to be synced.
 * Used internally by the engine for state synchronization.
 */
export interface ModStateChanges {
  data?: Record<string, unknown>;
  playerColors?: Record<string, { fill: string; border: string }>;
  playerSkinGridColors?: Record<string, { color: 'blue' | 'red' }>;
}