Ejemplo n.º 1
0
 public override void WrtieBodyToStream(CTextWriter writer)
 {
     writer.WriteString("classname", classname);
     writer.WriteVec3("origin", origin);
     foreach (var val in values)
     {
         writer.WriteString(val.Key, val.Value);
     }
 }
Ejemplo n.º 2
0
        public override void WrtieBodyToStream(CTextWriter writer)
        {
            base.WrtieBodyToStream(writer);
            if (skeleton != null)
                writer.WriteString("skeleton", skeleton.Name);
            if (model != null)
                writer.WriteString("model", model.Name);

            foreach (var skinSet in SkinSets)
                skinSet.WrtieToStream(writer);
        }
Ejemplo n.º 3
0
        public override void WrtieBodyToStream(CTextWriter writer)
        {
            base.WrtieBodyToStream(writer);

            writer.WriteString("bone", bone);
            writer.WriteVec3("pos", pos);
            writer.WriteQuat("rot", rot);
        }
Ejemplo n.º 4
0
 public override void WrtieBodyToStream(CTextWriter writer)
 {
     base.WrtieBodyToStream(writer);
     if (!string.IsNullOrEmpty(parent))
         writer.WriteString("parent", parent);
     writer.WriteVec3("pos", pos);
     writer.WriteQuat("rot", rot);
 }
Ejemplo n.º 5
0
 public override void WrtieBodyToStream(CTextWriter writer)
 {
     base.WrtieBodyToStream(writer);
     writer.WriteString("skeleton", skeleton.Name);
     if (KeyFrames.Count == 0)
     {
         (new CIwAnimKeyFrame()).WrtieToStream(writer);
     }
     else
     {
         foreach (var bone in KeyFrames)
             bone.WrtieToStream(writer);
     }
 }
Ejemplo n.º 6
0
 public override void WrtieBodyToStream(CTextWriter writer)
 {
     base.WrtieBodyToStream(writer);
     if (this.Name != null)
         writer.WriteString("name", this.Name);
 }