mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-06 20:44:25 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
22 lines
519 B
Plaintext
22 lines
519 B
Plaintext
#import "MWMTrack+Core.h"
|
|
|
|
@implementation MWMTrack
|
|
|
|
@end
|
|
|
|
@implementation MWMTrack (Core)
|
|
|
|
- (instancetype)initWithTrackId:(MWMTrackID)trackId trackData:(Track const *)track {
|
|
self = [super init];
|
|
if (self) {
|
|
_trackId = trackId;
|
|
_trackName = @(track->GetName().c_str());
|
|
_trackLengthMeters = track->GetLengthMeters();
|
|
auto const color = track->GetColor(0);
|
|
_trackColor = [UIColor colorWithRed:color.GetRedF() green:color.GetGreenF() blue:color.GetBlueF() alpha:1.f];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
@end
|