Subversion Repositories Games.Descent

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 pmbaty 1
#pragma once
2
#include <cstdint>
3
 
4
typedef uint16_t objnum_t;
5
 
6
class object_signature_t
7
{
8
        uint16_t signature = 0;
9
public:
10
        constexpr object_signature_t() = default;
11
        constexpr explicit object_signature_t(uint16_t s) :
12
                signature(s)
13
        {
14
        }
15
        bool operator==(const object_signature_t &rhs) const
16
        {
17
                return signature == rhs.signature;
18
        }
19
        bool operator!=(const object_signature_t &rhs) const
20
        {
21
                return !(*this == rhs);
22
        }
23
        uint16_t get() const { return signature; }
24
};