Objects Entity

Objects Entity

The objects entity represents all interactive world elements including NPCs, enemies, doors, chests, and environmental objects.

Key Properties

  • room_id: Parent room/map reference
  • layer_name: Tilemap layer name for placement
  • tile_index: Tile index within layer
  • class_type: Object type classification reference
  • object_class_key: Server-side class identifier
  • client_key: Client sprite/asset key
  • title: Display name
  • private_params: Server-only JSON configuration
  • client_params: Client-side JSON configuration
  • enabled: Object active status

Object Types

  • NPCs: Enemies, friendly NPCs, quest givers, merchants
  • Interactables: Doors, chests, levers, buttons, switches
  • Animations: Animated objects with multiple states
  • Items: Droppable and pickable items

Object Systems

  • Skills: Assign skills to NPCs for combat
  • Stats: Configure HP, attack, defense for enemies
  • Animations: Multiple animation states per object
  • Assets: Multiple sprites/assets per object
  • Inventory: Items contained in chests/NPCs
  • Requirements: Items needed for interaction
  • Rewards: Items given on interaction/defeat
  • Respawn: Automatic respawn configuration

Configuration Parameters

private_params (server-only) can include:

  • Behavior patterns
  • Dialogue trees
  • Shop inventory
  • Quest data

client_params (client-visible) can include:

  • Animation settings
  • Interaction range
  • Visual effects
  • UI configuration

Database Relations

  • rooms: Parent room/map
  • objects_types: Object type classification
  • objects_animations: Animation configurations
  • objects_assets: Sprite/asset configurations
  • objects_items_inventory: Inventory contents
  • objects_items_requirements: Interaction requirements
  • objects_items_rewards: Interaction rewards
  • objects_skills: Assigned skills
  • objects_stats: Stat overrides
  • respawn: Respawn configuration

Implementation

Configure objects in the admin panel under Objects. Place objects in Tiled Map Editor using object layers, then configure properties in admin panel.

Go Up