internal void Write(ParameterTreeWriter writer) { writer.PushScope(Name); { writer.PushScope("root"); { writer.Write("force", Force); writer.Write("force_gain", ForceGain); writer.Write("air_res", AirResistance); writer.Write("rot_y", RotationY); writer.Write("rot_z", RotationZ); writer.Write("friction", Friction); writer.Write("wind_afc", WindAffection); writer.Write("coli_type", CollisionType); writer.Write("init_rot_y", InitRotationY); writer.Write("init_rot_z", InitRotationZ); writer.Write("hinge_y", HingeY); writer.Write("hinge_z", HingeZ); writer.Write("coli_r", CollisionRadius); writer.Write("stiffness", Stiffness); writer.Write("move_cancel", MoveCancel); writer.Write("coli", Collisions, x => x.Write(writer)); writer.Write("boc", Bocs, x => x.Write(writer)); } writer.PopScope(); writer.Write("node", Nodes, x => x.Write(writer)); } writer.PopScope(); }
internal void Write(ParameterTreeWriter writer) { writer.Write("type", Type); writer.Write("radius", Radius); writer.PushScope("bone"); { writer.PushScope(0); { Bone0.Write(writer); } writer.PopScope(); writer.PushScope(1); { Bone1.Write(writer); } writer.PopScope(); } writer.PopScope(); }