Elin Modding Docs Doc
Loading...
Searching...
No Matches
TraitClock.cs
1using System;
2
3// Token: 0x02000437 RID: 1079
4public class TraitClock : Trait
5{
6 // Token: 0x06001E7B RID: 7803 RVA: 0x000AF1F0 File Offset: 0x000AD3F0
7 public override void OnSimulateHour(VirtualDate date)
8 {
9 if (!date.IsRealTime || !this.owner.IsInstalled)
10 {
11 return;
12 }
13 if (this.owner.Cell.room == EClass.pc.Cell.room)
14 {
15 this.owner.PlaySound("clock_hour", 1f, true);
16 }
17 }
18}
Definition Trait.cs:9