-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathActorTrack.cs
More file actions
39 lines (28 loc) · 894 Bytes
/
ActorTrack.cs
File metadata and controls
39 lines (28 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System.Collections.Generic;
using PlayerRoles;
namespace Causality0.Core;
public struct AudioPacket
{
public float Timestamp;
public byte Channel;
public byte[] Data;
public int DataLength;
public AudioPacket(float timestamp, byte channel, byte[] data, int dataLength)
{
Timestamp = timestamp;
Channel = channel;
Data = data;
DataLength = dataLength;
}
}
public sealed class ActorTrack
{
public int PlayerId { get; set; }
public string ActorName { get; set; }
public sbyte Role { get; set; }
public int StartFrame { get; set; }
public List<FrameData> Frames { get; } = new List<FrameData>();
public List<AudioPacket> AudioFrames { get; } = new List<AudioPacket>();
public List<LifecycleEvent> LifeEvents { get; } = new List<LifecycleEvent>();
public ReferenceHub Dummy { get; set; }
}