public static OCIItem Load( OIItemInfo _info, ObjectCtrlInfo _parent, TreeNodeObject _parentNode) { ChangeAmount _source = _info.changeAmount.Clone(); OCIItem ociItem = AddObjectItem.Load(_info, _parent, _parentNode, false, -1); _info.changeAmount.Copy(_source, true, true, true); AddObjectAssist.LoadChild(_info.child, (ObjectCtrlInfo)ociItem, (TreeNodeObject)null); return(ociItem); }
public static void LoadChild( ObjectInfo _child, ObjectCtrlInfo _parent = null, TreeNodeObject _parentNode = null) { switch (_child.kind) { case 0: OICharInfo _info = _child as OICharInfo; if (_info.sex == 1) { AddObjectFemale.Load(_info, _parent, _parentNode); break; } AddObjectMale.Load(_info, _parent, _parentNode); break; case 1: AddObjectItem.Load(_child as OIItemInfo, _parent, _parentNode); break; case 2: AddObjectLight.Load(_child as OILightInfo, _parent, _parentNode); break; case 3: AddObjectFolder.Load(_child as OIFolderInfo, _parent, _parentNode); break; case 4: AddObjectRoute.Load(_child as OIRouteInfo, _parent, _parentNode); break; case 5: AddObjectCamera.Load(_child as OICameraInfo, _parent, _parentNode); break; } }