コード例 #1
0
 public static CfgEncoder Encode(this Countless<Quaternion> c)
 {
     var cody = new CfgEncoder();
     List<int> inds;
     List<Quaternion> vals = c.GetAllObjs(out inds);
     for (int i = 0; i < inds.Count; i++)
         cody.Add(inds[i].ToString(), vals[i]);
     return cody;
 }
コード例 #2
0
 public static CfgEncoder Encode(this Countless<Vector3> c)
 {
     var cody = new CfgEncoder();
     if (c != null)
     {
         List<int> inds;
         List<Vector3> vals = c.GetAllObjs(out inds);
         for (int i = 0; i < inds.Count; i++)
             cody.Add(inds[i].ToString(), vals[i]);
     }
     return cody;
 }
コード例 #3
0
        public static CfgEncoder Encode(this Countless <float> c)
        {
            var          cody = new CfgEncoder();
            List <int>   inds;
            List <float> vals = c.GetAllObjs(out inds);

            for (int i = 0; i < inds.Count; i++)
            {
                cody.Add(inds[i].ToString(), vals[i]);
            }
            return(cody);
        }