yuanshen/Yuanshen.Proto/AttackResult.proto
wisedev fc2ac1050f First working version of the server
KCP gameserver with packet dispatch, scene streaming, combat, gacha and the
shop, plus a small HTTP server for the login flow and the wish history page.

Game data under assets is pulled out of the client instead of being typed by
hand. The excel tables come from the packed bin container and the spawn points
from the compiled scene scripts.
2026-09-04 02:10:50 +03:00

40 lines
1 KiB
Protocol Buffer

syntax = "proto3";
option csharp_namespace = "Yuanshen.Protocol";
import "AbilityIdentifier.proto";
import "AttackHitEffectResult.proto";
import "HitCollision.proto";
import "Vector.proto";
message AttackResult {
uint32 attackerId = 1;
uint32 defenseId = 2;
string animEventId = 3;
AbilityIdentifier abilityIdentifier = 4;
float damage = 6;
bool isCrit = 7;
HitCollision hitCollision = 8;
uint32 hitPosType = 9;
uint32 endureBreak = 10;
Vector resolvedDir = 11;
int32 hitRetreatAngleCompat = 12;
AttackHitEffectResult hitEffResult = 13;
uint32 elementType = 14;
bool useGadgetDamageAction = 19;
uint32 gadgetDamageActionIdx = 20;
bool isResistText = 22;
uint32 criticalRand = 23;
float elementAmplifyRate = 24;
float damageShield = 26;
bool muteElementHurt = 27;
uint32 amplifyReactionType = 30;
uint32 addhurtReactionType = 31;
uint32 bulletFlyTimeMs = 32;
uint32 attackCount = 33;
uint32 hashedAnimEventId = 34;
uint32 attackTimestampMs = 36;
float endureDelta = 37;
uint32 targetType = 38;
float elementDurabilityAttenuation = 39;
}