public override void UpdateViewValue(System.Object value) { if ((value is DeusVector2)) { m_objectPos = (DeusVector2)value; } }
public SkillInfos(PacketUseSkillAnswer packet) { LoadSkill(packet.SkillId); LaunchTime = packet.SkillLaunchTimestampMs; State = SkillState.NotLaunched; Position = packet.SkillLaunchPosition; }
public PacketHandleSkillInput(uint objectId, uint componentId, uint skillId, DeusVector2 position) : base(EPacketType.HandleSkillInputs) { SkillPosition = position; SkillId = skillId; ObjectId = objectId; ComponentId = componentId; }
public PacketMovementUpdateAnswer(uint objectId, uint componentId, DeusVector2 origin, uint originMs, DeusVector2 destination, uint destMs) : base(EPacketType.UpdateMovementAnswer) { ObjectId = objectId; ComponentId = componentId; PositionOrigin = origin; OriginTimestampMs = originMs; Destination = destination; DestinationTimestampMs = destMs; }
public override void OnAnswerDeserialize(byte[] buffer, int index) { // 1 - ObjectId uint tmpObjectId = 0; Serializer.DeserializeData(buffer, ref index, out tmpObjectId); ObjectId = tmpObjectId; // 2 - ComponentId uint tmpComponentId = 0; Serializer.DeserializeData(buffer, ref index, out tmpComponentId); ComponentId = tmpComponentId; // 3 - Origin DeusVector2 origin = new DeusVector2(); Serializer.DeserializeData(buffer, ref index, origin); PositionOrigin = origin; // 5 - Timestamp origin uint tmpSrcMs = 0; Serializer.DeserializeData(buffer, ref index, out tmpSrcMs); OriginTimestampMs = tmpSrcMs; // 5 - Destination DeusVector2 dest = new DeusVector2(); Serializer.DeserializeData(buffer, ref index, dest); Destination = dest; // 5 - Timestamp destination uint tmpDestMs = 0; Serializer.DeserializeData(buffer, ref index, out tmpDestMs); DestinationTimestampMs = tmpDestMs; }
public PacketHandleMovementInput(uint objectId, uint componentId, DeusVector2 destination) : base(EPacketType.HandleMovementInputs) { DestinationWanted = destination; ObjectId = objectId; ComponentId = componentId; }
public PacketMovementUpdateRequest(DeusVector2 dest, uint componentId) : this() { DestinationPos = dest; ComponentId = componentId; }