Ejemplo n.º 1
0
 public void PlayAnimation(string name)
 {
     if (!isAnimated)
     {
         throw new Exception("Tried to call Playanimation on a non animated spritesheet");
     }
     if (!animData.ContainsKey(name))
     {
         throw new ArgumentException(name + " was not found within the loaded animation MetaData!");
     }
     if (name != currentAnimation.Name)
     {
         currentAnimation = animData[name];
         time             = 0.0f;
         frameCounter     = 0;
     }
 }
Ejemplo n.º 2
0
 ///<summary>Creates and Adds an instance of the specified MetaData Class to the given Animation Sequence</summary>
 public static void AddMetaData(AnimSequence AnimationSequence, SubclassOf <AnimMetaData> MetaDataClass, AnimMetaData MetaDataInstance) =>
 AnimationBlueprintLibrary_methods.AddMetaData_method.Invoke(AnimationSequence, MetaDataClass, MetaDataInstance);
Ejemplo n.º 3
0
 ///<summary>Adds an instance of the specified MetaData Class to the given Animation Sequence (requires MetaDataObject's outer to be the Animation Sequence)</summary>
 public static void AddMetaDataObject(AnimSequence AnimationSequence, AnimMetaData MetaDataObject) =>
 AnimationBlueprintLibrary_methods.AddMetaDataObject_method.Invoke(AnimationSequence, MetaDataObject);
Ejemplo n.º 4
0
 ///<summary>Removes the specified Meta Data Instance from the given Animation Sequence</summary>
 public static void RemoveMetaData(AnimSequence AnimationSequence, AnimMetaData MetaDataObject) =>
 AnimationBlueprintLibrary_methods.RemoveMetaData_method.Invoke(AnimationSequence, MetaDataObject);