Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
SerializableDateTime.cs
Go to the documentation of this file.
1using System;
2using UnityEngine;
3
4[Serializable]
5public class SerializableDateTime : IComparable<SerializableDateTime>
6{
7 [SerializeField]
8 private long m_ticks;
9
10 private bool initialized;
11
13
15 {
16 get
17 {
18 if (!initialized)
19 {
21 initialized = true;
22 }
23 return m_dateTime;
24 }
25 }
26
28 {
29 m_ticks = dateTime.Ticks;
30 m_dateTime = dateTime;
31 initialized = true;
32 }
33
35 {
36 if (other == null)
37 {
38 return 1;
39 }
40 return m_ticks.CompareTo(other.m_ticks);
41 }
42}
SerializableDateTime(DateTime dateTime)
int CompareTo(SerializableDateTime other)