public void FromJson(string content) { PMT.RE.ListTmp tmp = new PMT.RE.ListTmp(); src = tmp.Get(0); width = tmp.GetAsFloat(1); height = tmp.GetAsFloat(2); }
public void FromJson(string content) { PMT.RE.ListTmp tmp = new PMT.RE.ListTmp(content); type = (UnitType)tmp.GetAsInt(0); fieldtype = (FieldType)tmp.GetAsInt(1); isMulti = tmp.GetAsBool(2); isMultilingual = tmp.GetAsBool(3); isArrayContainer = tmp.GetAsBool(4); isArrayElement = tmp.GetAsBool(5); key = tmp.Get(6); parent = tmp.Get(7); name = tmp.Get(8); sort = tmp.GetAsInt(9); no = tmp.GetAsInt(10); lang = tmp.GetAsInt(11); content = tmp.Get(12); attribute = tmp.Get(13); }