removed useless information on marker struct

This commit is contained in:
Valmo Trindade
2024-09-20 17:53:08 -03:00
parent 56c3e1787d
commit f8ca2d21d7
2 changed files with 2 additions and 12 deletions

View File

@@ -15,8 +15,6 @@ private _atak_callsign = [_unit] call armatak_fnc_extract_callsign;
private _atak_altitude = _location select 2;
private _atak_server_instance = missionNamespace getVariable "_atak_server_instance";
private _atak_server_instance_token = missionNamespace getVariable "_atak_server_instance_token";
private _atak_server_instance_username = missionNamespace getVariable "_atak_server_instance_username";
private _atak_server_instance_password = missionNamespace getVariable "_atak_server_instance_password";
_drone = vehicle (getConnectedUAVUnit _unit);
@@ -25,6 +23,6 @@ if (!isNull _drone) then {
_drone setVariable ["_atak_uav_callsign", "[UAV]" + name _unit];
};
_unit_info = [_atak_uid, _atak_latitude, _atak_longitude, _atak_speed, _atak_bearing, _atak_role, _atak_callsign, _atak_altitude, _atak_server_instance, _atak_server_instance_token, _atak_server_instance_username, _atak_server_instance_password];
_unit_info = [_atak_uid, _atak_latitude, _atak_longitude, _atak_speed, _atak_bearing, _atak_role, _atak_callsign, _atak_altitude, _atak_server_instance, _atak_server_instance_token];
_unit_info

View File

@@ -13,8 +13,6 @@ pub struct Marker {
pub hae: f64,
pub api_address: String,
pub api_auth_token: String,
pub api_auth_username: String,
pub api_auth_password: String,
}
impl FromArma for Marker {
@@ -30,8 +28,6 @@ impl FromArma for Marker {
hae,
api_address,
api_auth_token,
api_auth_username,
api_auth_password
) = <(
String,
f64,
@@ -42,8 +38,6 @@ impl FromArma for Marker {
String,
f64,
String,
String,
String,
String
)>::from_arma(data)?;
Ok(Self {
@@ -56,9 +50,7 @@ impl FromArma for Marker {
name,
hae,
api_address,
api_auth_token,
api_auth_username,
api_auth_password
api_auth_token
})
}
}