XJ music engine  1.9.6
In-game runtime engine for XJ music.
SegmentEntity.h
Go to the documentation of this file.
1 // Copyright (c) XJ Music Inc. (https://xjmusic.com) All Rights Reserved.
2 
3 #ifndef SEGMENT_ENTITY_H
4 #define SEGMENT_ENTITY_H
5 
6 #include <string>
7 #include <utility>
8 
12 
13 namespace XJ {
14 
15  class SegmentEntity {
16  public:
17  SegmentEntity() = default;
18 
20  int segmentId{};
21 
28  friend bool operator<(const SegmentEntity &lhs, const SegmentEntity &rhs) {
29  if (lhs.segmentId == rhs.segmentId)
30  return lhs.id < rhs.id;
31  return lhs.segmentId < rhs.segmentId;
32  }
33 
34  };
35 
36 }// namespace XJ
37 
38 #endif//SEGMENT_ENTITY_H
Definition: SegmentEntity.h:15
SegmentEntity()=default
UUID id
Definition: SegmentEntity.h:19
friend bool operator<(const SegmentEntity &lhs, const SegmentEntity &rhs)
Definition: SegmentEntity.h:28
int segmentId
Definition: SegmentEntity.h:20
Definition: ActiveAudio.h:11
std::string UUID
Definition: EntityUtils.h:28