internal AnimationMeshBlock(Rcol parent) { datai = new uint[6]; datas = new short[4]; ab2 = new AnimationFrameBlock[0]; ab4 = new AnimBlock4[0]; this.parent = parent; }
/// <summary> /// Constructor /// </summary> public AnimResourceConst(Rcol parent) : base(parent) { sgres = new SGResource(null); unknowndata = new byte[0]; BlockID = 0xfb00791e; headerb = new byte[6]; headeri = new uint[4]; headerf = new float[9]; objname = ""; objmod = ""; ab1 = new AnimationMeshBlock[0]; ab6 = new AnimBlock6[0]; }
/// <summary> /// Returns the assigned TransformNode /// </summary> /// <param name="index">the Index of this Joint within the Parent</param> /// <returns>null or a TransformNode</returns> protected TransformNode GetAssignedTransformNode(int index) { if (parent.ParentResourceNode == null) { return(null); } Rcol cres = parent.ParentResourceNode.Parent; foreach (SimPe.Interfaces.Scenegraph.IRcolBlock irb in cres.Blocks) { if (irb.GetType() == typeof(TransformNode)) { TransformNode tn = (TransformNode)irb; if (tn.JointReference == index) { return(tn); } } } return(null); }