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; }
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; }
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); }