Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
180 lines (159 sloc) 6.72 KB
import "general.proto";
message ActiveTargetMessage {
required int32 targetId = 1;
required VectorMessage targetPosition = 2;
}
message SlugQueryLocationMessage {
required int32 locationType = 1;
required int32 componentId = 2;
required int32 parentId = 3;
optional string socket = 4;
}
message SlugQueryActuatorMessage {
required int32 state = 1;
required SlugQueryLocationMessage location = 2;
required VectorMessage rotationMin = 3;
required VectorMessage rotationMax = 4;
required VectorMessage rotationDefault = 5;
required VectorMessage rotationCurrent = 6;
required VectorMessage rotationTarget = 7;
required float rotationSpeedMax = 8;
required float rotationSpeed = 9;
}
message SlugQueryArmMessage {
required SlugQueryLocationMessage location = 1;
required int32 index = 2;
required int32 state = 3;
required bool hasStorage = 4;
}
message SlugQueryArmorMessage {
required SlugQueryLocationMessage location = 1;
required int32 valueFrontMax = 2;
required int32 valueFrontCurrent = 3;
required int32 valueBackMax = 4;
required int32 valueBackCurrent = 5;
}
message SlugQueryCapacitorMessage {
required SlugQueryLocationMessage location = 1;
required int32 state = 2;
required int32 capacity = 3;
required float chargeRate = 4;
required int32 chargeAmount = 5;
}
message SlugQueryCockpitMessage {
required int32 state = 1;
}
message SlugQueryCommunicationMessage {
required SlugQueryLocationMessage location = 1;
required int32 state = 2;
required ActiveComponentMessage activeComponent = 3;
required int32 cType = 4;
required float receiveRate = 5;
required float sendRate = 6;
required float maxRange = 7;
required int32 channels = 8;
required float delay = 9;
required int32 bufferSize = 10;
}
message SlugQueryComputerMessage {
required SlugQueryLocationMessage location = 1;
required int32 state = 2;
required ActiveComponentMessage activeComponent = 3;
required int32 targetsMax = 4;
repeated int32 targetsLocked = 5;
required int32 targetPrimary = 6;
required int32 targetLockNew = 7;
required float targetLockOnTime = 8;
required float targetLockTime = 9;
repeated int32 teamMechs = 10;
}
message SlugQueryCounterMeasureMessage {
required SlugQueryLocationMessage location = 1;
required int32 state = 2;
required int32 cmType = 3;
required ActiveComponentMessage activeComponent = 4;
}
message SlugQueryEngineMessage {
required int32 state = 1;
required ActiveComponentMessage activeComponent = 2;
}
message SlugQueryGyroMessage {
required int32 state = 1;
}
message SlugQueryLegMessage {
required SlugQueryLocationMessage location = 1;
required int32 index = 2;
required int32 state = 3;
required SlugQueryArmorMessage armor = 4;
}
message SlugQueryReactorMessage {
required int32 state = 1;
required int32 output = 2;
}
message SlugQuerySensorMessage {
required SlugQueryLocationMessage location = 1;
required int32 state = 2;
required ActiveComponentMessage activeComponent = 3;
required int32 sType = 4;
required float maxRange = 5;
required float fov = 6;
required bool occlusion = 7;
required float refreshRate = 8;
repeated ActiveTargetMessage activeTargets = 9;
}
message SlugQueryStorageMessage {
required SlugQueryLocationMessage location = 1;
required int32 size = 2;
}
message SlugQueryTorsoMessage {
required int32 state = 1;
}
message SlugQueryWeaponMessage {
required SlugQueryLocationMessage location = 1;
required int32 state = 2;
required ActiveComponentMessage activeComponent = 3;
required int32 fireState = 4;
required bool hasCapacitor = 5;
required float fireRate = 6;
required float firedLast = 7;
required int32 ammoMax = 8;
required int32 ammoCurrent = 9;
required int32 clipMax = 10;
required int32 clipCurrent = 11;
required float reloadRate = 12;
required float unJamChance = 13;
required float rangeLow = 14;
required float rangeMid = 15;
required float rangeHigh = 16;
required int32 damageLow = 17;
required int32 damageMid = 18;
required int32 damageHigh = 19;
required int32 firedCount = 20;
}
// empty message
// message SlugQueryMechRequest {
// }
message SlugQueryMechResponse {
required int32 state = 1;
required int32 maxWeight = 2;
required int32 currentWeight = 3;
required VectorMessage position = 4;
required VectorMessage rotation = 5;
required float rotationRate = 6;
repeated SlugQueryActuatorMessage actuators = 7;
repeated SlugQueryArmMessage arms = 8;
repeated SlugQueryArmorMessage armors = 9;
repeated SlugQueryCapacitorMessage capacitors = 10;
required SlugQueryCockpitMessage cockpit = 11;
repeated SlugQueryCommunicationMessage communications = 12;
repeated SlugQueryComputerMessage computers = 13;
repeated SlugQueryCounterMeasureMessage counterMeasures = 14;
required SlugQueryEngineMessage engine = 15;
required SlugQueryGyroMessage gyro = 16;
repeated SlugQueryLegMessage legs = 17;
repeated SlugQuerySensorMessage sensors = 18;
repeated SlugQueryStorageMessage storages = 19;
required SlugQueryReactorMessage reactor = 20;
required SlugQueryTorsoMessage torso = 21;
repeated SlugQueryWeaponMessage weapons = 22;
}