public static OCIRoute Load( OIRouteInfo _info, ObjectCtrlInfo _parent, TreeNodeObject _parentNode) { ChangeAmount _source = _info.changeAmount.Clone(); OCIRoute ociRoute = AddObjectRoute.Load(_info, _parent, _parentNode, false, -1); _info.changeAmount.Copy(_source, true, true, true); AddObjectAssist.LoadChild(_info.child, (ObjectCtrlInfo)ociRoute, (TreeNodeObject)null); return(ociRoute); }
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; } }
public static OCIRoute Add() { return(AddObjectRoute.Load(new OIRouteInfo(Studio.Studio.GetNewIndex()), (ObjectCtrlInfo)null, (TreeNodeObject)null, true, Studio.Studio.optionSystem.initialPosition)); }