mirror of
https://github.com/lcdr/lu_packets.git
synced 2025-12-30 16:24:22 -06:00
Add ControlBehaviors game message
This commit is contained in:
@@ -96,14 +96,12 @@ fn parse(path: &Path) -> Res<usize> {
|
||||
packet_count += 1
|
||||
} else if file.name().contains("[53-04-")
|
||||
&& !file.name().contains("[53-04-00-16]")
|
||||
&& !file.name().contains("[30-00]")
|
||||
&& !file.name().contains("[e6-00]")
|
||||
&& !file.name().contains("[6b-03]")
|
||||
&& !file.name().contains("[16-04]")
|
||||
&& !file.name().contains("[49-04]")
|
||||
&& !file.name().contains("[ad-04]")
|
||||
&& !file.name().contains("[1c-05]")
|
||||
&& !file.name().contains("[48]")
|
||||
&& !file.name().contains("[230]")
|
||||
&& !file.name().contains("[875]")
|
||||
&& !file.name().contains("[1046]")
|
||||
|
||||
@@ -5,7 +5,8 @@ use lu_packets_derive::{GameMessage, GmParam, VariantTests};
|
||||
|
||||
use crate::common::{ObjId, OBJID_EMPTY};
|
||||
|
||||
use super::super::{Lot, LOT_NULL, Quaternion, Vector3};
|
||||
use crate::world::{Lot, LOT_NULL, Quaternion, Vector3};
|
||||
use crate::world::amf3::Amf3;
|
||||
use super::{EquipInventory, GmString, GmWString, InventoryType, KillType, UnEquipInventory, MissionState, PetNotificationType, MoveItemInInventory, MoveInventoryBatch, SetIgnoreProjectileCollision};
|
||||
|
||||
#[derive(Debug, Deserialize, PartialEq, Serialize)]
|
||||
@@ -19,6 +20,7 @@ pub struct SubjectGameMessage {
|
||||
pub enum GameMessage {
|
||||
RequestDie(RequestDie) = 38,
|
||||
PlayEmote(PlayEmote) = 41,
|
||||
ControlBehaviors(ControlBehaviors) = 48,
|
||||
StartSkill(StartSkill) = 119,
|
||||
CasterDead(CasterDead) = 120,
|
||||
VerifyAck(VerifyAck) = 121,
|
||||
@@ -154,6 +156,12 @@ pub struct PlayEmote {
|
||||
pub target_id: ObjId,
|
||||
}
|
||||
|
||||
#[derive(Debug, GameMessage, PartialEq)]
|
||||
pub struct ControlBehaviors {
|
||||
pub args: Amf3,
|
||||
pub command: GmString,
|
||||
}
|
||||
|
||||
#[derive(Debug, GameMessage, PartialEq)]
|
||||
pub struct StartSkill {
|
||||
#[default(false)]
|
||||
|
||||
BIN
src/world/gm/server/tests/ControlBehaviors.bin
Normal file
BIN
src/world/gm/server/tests/ControlBehaviors.bin
Normal file
Binary file not shown.
8
src/world/gm/server/tests/ControlBehaviors.rs
Normal file
8
src/world/gm/server/tests/ControlBehaviors.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
GameMessage::ControlBehaviors(
|
||||
ControlBehaviors {
|
||||
args: amf3! {
|
||||
"enabled": false,
|
||||
},
|
||||
command: lu!(b"toggleExecutionUpdates"),
|
||||
},
|
||||
)
|
||||
Reference in New Issue
Block a user