Beispiel #1
0
        public static ActorBoneBase Read(Actor actor, BinaryReader reader, ActorBoneBase node)
        {
            ActorNode.Read(actor, reader, node);

            node.m_Length = reader.ReadSingle();

            return(node);
        }
Beispiel #2
0
        public static ActorBone Read(Actor actor, BinaryReader reader, ActorBone node = null)
        {
            if (node == null)
            {
                node = new ActorBone();
            }

            ActorBoneBase.Read(actor, reader, node);
            return(node);
        }
Beispiel #3
0
 public override void ResolveComponentIndices(ActorComponent[] components)
 {
     base.ResolveComponentIndices(components);
     if (m_BoneConnections != null)
     {
         for (int i = 0; i < m_BoneConnections.Length; i++)
         {
             BoneConnection bc = m_BoneConnections[i];
             bc.m_Node = components[bc.m_BoneIdx] as ActorNode;
             ActorBoneBase bone = bc.m_Node as ActorBoneBase;
             bone.IsConnectedToImage = true;
         }
     }
 }
Beispiel #4
0
 public void Copy(ActorBoneBase node, Actor resetActor)
 {
     base.Copy(node, resetActor);
     m_Length             = node.m_Length;
     m_IsConnectedToImage = node.m_IsConnectedToImage;
 }