pub enum Intent {
Show 36 variants
Move {
entity_id: EntityId,
forward: f32,
strafe: f32,
vertical: f32,
sprint: bool,
seq: Seq,
},
Stop {
entity_id: EntityId,
seq: Seq,
},
Harvest {
entity_id: EntityId,
node_id: String,
seq: Seq,
},
Use {
entity_id: EntityId,
template_id: String,
seq: Seq,
},
Say {
entity_id: EntityId,
channel: ChatChannel,
text: String,
seq: Seq,
},
Craft {
entity_id: EntityId,
blueprint_id: String,
count: Option<u32>,
seq: Seq,
},
Interact {
entity_id: EntityId,
target_id: String,
seq: Seq,
},
ShopBuy {
entity_id: EntityId,
npc_id: String,
offer_id: String,
quantity: u32,
seq: Seq,
},
ShopSell {
entity_id: EntityId,
npc_id: String,
template_id: String,
quantity: u32,
seq: Seq,
},
TestDamage {
entity_id: EntityId,
amount: f32,
seq: Seq,
},
SetTarget {
entity_id: EntityId,
target_id: EntityId,
seq: Seq,
},
SetTargetSlot {
entity_id: EntityId,
slot_index: u8,
target_id: EntityId,
seq: Seq,
},
ClearTarget {
entity_id: EntityId,
seq: Seq,
},
ClearTargetSlot {
entity_id: EntityId,
slot_index: u8,
seq: Seq,
},
SetAutoAttack {
entity_id: EntityId,
slot_index: u8,
enabled: bool,
seq: Seq,
},
Attack {
entity_id: EntityId,
target_id: Option<EntityId>,
weapon_slot: Option<u32>,
seq: Seq,
},
Pickup {
entity_id: EntityId,
drop_id: Option<String>,
seq: Seq,
},
Cast {
entity_id: EntityId,
ability_id: String,
target_id: EntityId,
seq: Seq,
},
BindActionSlot {
entity_id: EntityId,
slot_index: u8,
ability_id: String,
auto_enabled: bool,
seq: Seq,
},
UseActionSlot {
entity_id: EntityId,
slot_index: u8,
seq: Seq,
},
Dodge {
entity_id: EntityId,
seq: Seq,
},
Lunge {
entity_id: EntityId,
forward: f32,
strafe: f32,
seq: Seq,
},
Block {
entity_id: EntityId,
enabled: bool,
seq: Seq,
},
EquipMainhand {
entity_id: EntityId,
template_id: Option<String>,
seq: Seq,
},
EquipWorn {
entity_id: EntityId,
slot: BodySlot,
instance_id: Option<Uuid>,
seq: Seq,
},
MoveItem {
entity_id: EntityId,
item_instance_id: Uuid,
from: InventoryLocation,
to: InventoryLocation,
to_parent_instance_id: Option<Uuid>,
quantity: Option<u32>,
seq: Seq,
},
PlaceContainer {
entity_id: EntityId,
item_instance_id: Uuid,
seq: Seq,
},
PickupContainer {
entity_id: EntityId,
container_id: String,
seq: Seq,
},
SetContainerLocked {
entity_id: EntityId,
location: InventoryLocation,
locked: bool,
seq: Seq,
},
DropItem {
entity_id: EntityId,
item_instance_id: Uuid,
from: InventoryLocation,
seq: Seq,
},
DestroyItem {
entity_id: EntityId,
item_instance_id: Uuid,
from: InventoryLocation,
quantity: Option<u32>,
seq: Seq,
},
RenameContainer {
entity_id: EntityId,
item_instance_id: Uuid,
location: InventoryLocation,
name: String,
seq: Seq,
},
UpsertRotationPreset {
entity_id: EntityId,
preset: RotationPreset,
seq: Seq,
},
DeleteRotationPreset {
entity_id: EntityId,
preset_id: String,
seq: Seq,
},
AssignSlotPreset {
entity_id: EntityId,
slot_index: u8,
preset_id: String,
seq: Seq,
},
AdvanceRotation {
entity_id: EntityId,
slot_index: u8,
seq: Seq,
},
}Expand description
Client → server gameplay input (reliable, sequenced per entity).
Variants§
Move
Fields
Stop
Harvest
Use
Say
Craft
Start a blueprint craft (timed, like harvest).
Fields
Interact
Door, NPC, enter/exit building.
ShopBuy
Buy from an NPC shop offer (ShopOpened catalog).
ShopSell
Sell inventory to an NPC (ShopOpened buy list).
TestDamage
Dev / test: apply damage to self (co-op testing).
SetTarget
Slot-1 combat target (plans/12 alias).
SetTargetSlot
Target slot assignment (plans/12 §5.3). Slot 1 aliases SetTarget.
ClearTarget
ClearTargetSlot
SetAutoAttack
Toggle per-slot auto-attack (plans/12 §4.2).
Attack
Melee attack — uses target_id or the player’s current target.
Pickup
Pick up a ground loot pile (nearest in range when drop_id omitted).
Cast
Cast a spell or use a non-weapon ability template (plans/24 §4.3b).
BindActionSlot
Bind an ability to a target slot action bar (plans/12 §4.2).
UseActionSlot
Fire a bound consumable or ability from a slot (plans/24 §4.3c).
Dodge
Dodge — brief i-frames, stamina cost (plans/24 §4.3c).
Lunge
Lunge — burst forward in movement/facing direction, higher stamina cost.
Fields
Block
Block — frontal mitigation while held (plans/24 §4.3c).
EquipMainhand
Equip or clear mainhand weapon (plans/26 §C2b). None unequips.
EquipWorn
Equip a wearable (container, belt, or armor piece) to a body slot, or clear the
slot when instance_id is None.
MoveItem
Move an item instance between root / worn / placed container inventories.
Fields
from: InventoryLocationto_parent_instance_id: Option<Uuid>When moving into a container location, nest under this parent instance (None = container root).
PlaceContainer
Place a placeable container from inventory onto the ground at the player’s feet.
PickupContainer
Pick up a placed container (with contents) into inventory.
SetContainerLocked
Lock or unlock a worn or placed container (requires matching key when locking/unlocking).
Fields
location: InventoryLocationWorn slot or placed container id encoded as location.
DropItem
Drop a non-container item on the ground at the player’s feet.
DestroyItem
Permanently destroy an item stack (not recoverable; no ground drop).
Fields
from: InventoryLocationRenameContainer
Set a custom display name on a container instance (chest, pouch, backpack).
UpsertRotationPreset
Create or update a rotation preset in the player’s library.
DeleteRotationPreset
Remove a rotation preset from the library.
AssignSlotPreset
Assign a library preset to target slot T1/T2.
AdvanceRotation
Fire the next ready ability in a slot’s rotation (manual step).