private void ConverntToFsmOutCommand(StateInterCommands commands)
 {
     foreach (KeyValuePair <short, float> pair in commands.Commands)
     {
         _fsmOutputs.AddOutput(new FsmOutput
         {
             Type       = (FsmOutputType)pair.Key,
             FloatValue = pair.Value
         });
     }
 }
        public static StateInterCommands Deserialize(StateInterCommands typeTag, BinaryReader reader)
        {
            if (typeTag != null)
            {
                typeTag.Reset();
            }
            else
            {
                typeTag = new StateInterCommands();
            }

            typeTag.Read(reader);
            return(typeTag);
        }
Exemple #3
0
        private void InitFileds()
        {
            if (StateInterCommands == null)
            {
                StateInterCommands = new StateInterCommands();
            }

            if (AnimationCallbackCommands == null)
            {
                AnimationCallbackCommands = new StateInterCommands();
            }

            if (FirstPersonAnimationEventCallBack == null)
            {
                FirstPersonAnimationEventCallBack = new UnityAnimationEventCommands();
            }

            if (ThirdPersonAnimationEventCallBack == null)
            {
                ThirdPersonAnimationEventCallBack = new UnityAnimationEventCommands();
            }
        }
 public static void Serialize(StateInterCommands data, Core.Utils.MyBinaryWriter writer,
                              StateInterCommands last = default(StateInterCommands), bool weiteAll = false)
 {
     data.Write(writer);
 }
Exemple #5
0
 public static bool Equals(StateInterCommands a, StateInterCommands b)
 {
     return(false);
 }
Exemple #6
0
 public static StateInterCommands Deserialize(StateInterCommands typeTag, BinaryReader reader)
 {
     return(_stateInterCommandsSerializer.Read(reader));
 }
 public static StateInterCommands Clone(StateInterCommands data)
 {
     return(data != null?data.Clone() : null);
 }
Exemple #8
0
 public static StateInterCommands Merge(StateInterCommands basevalue, StateInterCommands patchvalue)
 {
     basevalue.Reset();
     basevalue.CopyFrom(patchvalue);
     return(basevalue);
 }