mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 16:03:31 +00:00
removed useless information on marker struct
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user