0.2.0-dev Download ZIP
15 lines ·479 B Raw
| 1 | using EvilEngine.Formats; |
| 2 | using EvilEngine.Formats.Records; |
| 3 | |
| 4 | namespace EvilEngine.Client; |
| 5 | |
| 6 | public 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 | } |