Skip to content
0.2.0-dev Download ZIP
15 lines ·479 B Raw
1using EvilEngine.Formats;
2using EvilEngine.Formats.Records;
3
4namespace EvilEngine.Client;
5
6public partial class MenuRealm
7{
8 private static readonly string[] PreviewSequences = ["idle_all_01", "menu_walk"];
9
10 private static ContentId PreviewClip(PersonRecord person)
11 {
12 var sequence = PreviewSequences[Random.Shared.Next(PreviewSequences.Length)];
13 return ContentId.Create(person.Body.Model.Namespace, $"{person.Body.Model.Name}/anim/{sequence}");
14 }
15}