// Update attribute values private void UpdateAll(CShipHlaObject ship) { // Add Values ship.AddAttributeValue(Som.ShipOC.Callsign, ship.Ship.Callsign); ship.AddAttributeValue(Som.ShipOC.Heading, (uint)ship.Ship.Heading); ship.AddAttributeValue <PositionType>(Som.ShipOC.Position, ship.Ship.Position); ship.AddAttributeValue(Som.ShipOC.Speed, (uint)ship.Ship.Speed); UpdateAttributeValues(ship); }
private void UpdateHeading(CShipHlaObject ship) { // Add Values ship.AddAttributeValue(Som.ShipOC.Heading, (uint)ship.Ship.Heading); UpdateAttributeValues(ship); // Update attribute using a logical timestamp //EventRetractionHandle handle = UpdateAttributeValues(user, 3.14); }
private void UpdateSpeed(CShipHlaObject ship) { // Add Values ship.AddAttributeValue(Som.ShipOC.Speed, (uint)ship.Ship.Speed); UpdateAttributeValues(ship); }
public void UpdatePosition(CShipHlaObject ship) { // Add Values ship.AddAttributeValue <PositionType>(Som.ShipOC.Position, ship.Ship.Position); UpdateAttributeValues(ship); }
private void UpdateName(CShipHlaObject ship) { // Add Values ship.AddAttributeValue(Som.ShipOC.Callsign, ship.Ship.Callsign); UpdateAttributeValues(ship); }