r2mods/ilspy_dump/ror2_csproj/RoR2/CharacterEmoteDefinitions.cs

35 lines
545 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using System;
using EntityStates;
using UnityEngine;
namespace RoR2;
public class CharacterEmoteDefinitions : MonoBehaviour
{
[Serializable]
public struct EmoteDef
{
public string name;
public string displayName;
public EntityStateMachine targetStateMachine;
public SerializableEntityStateType state;
}
public EmoteDef[] emoteDefinitions;
public int FindEmoteIndex(string name)
{
for (int i = 0; i < emoteDefinitions.Length; i++)
{
if (emoteDefinitions[i].name == name)
{
return i;
}
}
return -1;
}
}