/// <summary> /// Initializes the serialized data. /// </summary> /// <param name="jsObjID">The js object identifier.</param> public virtual void initSerializedData(int jsObjID) { if (dataSerialized) { return; } dataSerialized = true; if (arrString == null || arrString.Length == 0) { return; } var root = new SerializeStruct(SerializeStruct.SType.Root, "this-name-doesn't-matter", null); TraverseSerialize(jsObjID, root); if (root.lstChildren != null) { foreach (var child in root.lstChildren) { child.calcID(); SetObjectFieldOrProperty(jsObjID, child.name, child.id); } } root.removeID(); }
/// <summary> /// Initializes the serialized data. /// </summary> /// <param name="jsObjID">The js object identifier.</param> public virtual void initSerializedData(int jsObjID) { if (dataSerialized) { return; } dataSerialized = true; if (arrString == null || arrString.Length == 0) { return; } SerializeStruct root = new SerializeStruct("root"); ParseSerializeData(jsObjID, root); if (root.children != null) { foreach (var child in root.children) { SetObjectFieldOrProperty(jsObjID, child.name, child.id); } } root.removeID(); }
/// <summary> /// Initializes the serialized data. /// </summary> /// <param name="jsObjID">The js object identifier.</param> public void initSerializedData(int jsObjID) { if (arrString == null || arrString.Length == 0) { return; } var root = new SerializeStruct(SerializeStruct.SType.Root, "this-name-doesn't-matter", null); TraverseSerialize(jsObjID, root); if (root.lstChildren != null) { foreach (var child in root.lstChildren) { child.calcID(); SetObjectFieldOrProperty(jsObjID, child.name, child.id); } } root.removeID(); }