public static ObjectPoolList Create() { ObjectPoolList asset = ScriptableObject.CreateInstance <ObjectPoolList>(); AssetDatabase.CreateAsset(asset, "Assets/ScriptableObjects/ObjectPoolList.asset"); AssetDatabase.SaveAssets(); return(asset); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public DependencyGraph(org.maltparser.core.symbol.SymbolTableHandler symbolTables) throws org.maltparser.core.exception.MaltChainedException public DependencyGraph(SymbolTableHandler symbolTables) : base(symbolTables) { SingleHeadedConstraint = true; root = new Root(); root.BelongsToGraph = this; graphEdges = new SortedSet <Edge.Edge>(); edgePool = new ObjectPoolListAnonymousInnerClass(this); Clear(); }
public PoolManager() { ObjectPoolList objectPoolList = Resources.Load <ObjectPoolList>("pool"); foreach (var pool in objectPoolList.PoolList) { this.poolDict.Add(pool.Name, pool); } }
static void CreatePoolList() { ObjectPoolList poolList = ScriptableObject.CreateInstance <ObjectPoolList>(); string path = PoolManager.PoolConfigPath; AssetDatabase.CreateAsset(poolList, path); AssetDatabase.SaveAssets(); EditorUtility.DisplayDialog("提示", "创建成功", "好的"); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public PhraseStructureGraph(org.maltparser.core.symbol.SymbolTableHandler symbolTables) throws org.maltparser.core.exception.MaltChainedException public PhraseStructureGraph(SymbolTableHandler symbolTables) : base(symbolTables) { root = new Root(); root.BelongsToGraph = this; graphEdges = new SortedSet <Edge.Edge>(); edgePool = new ObjectPoolListAnonymousInnerClass(this); nonTerminalNodes = new SortedDictionary <int, NonTerminal>(); nonTerminalPool = new ObjectPoolListAnonymousInnerClass2(this); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); ObjectPoolList myObjectPoolList = (ObjectPoolList)target; if (GUILayout.Button("Add")) { myObjectPoolList.Add(); EditorUtility.SetDirty(target); } }
private void UnloadList(ObjectPoolList i_List) { if (i_List == null) { return; } for (int descriptorIndex = 0; descriptorIndex < i_List.Count; ++descriptorIndex) { PoolDescriptor descriptor = i_List[descriptorIndex]; UnloadPool(descriptor); } }
public void UnloadAll() { if (!m_Loaded) { return; } m_Loaded = false; for (int listIndex = 0; listIndex < catalog.Count; ++listIndex) { ObjectPoolList list = catalog[listIndex]; UnloadList(list); } }
// BUSINESS LOGIC public void LoadAll() { if (m_Loaded) { return; } for (int listIndex = 0; listIndex < catalog.Count; ++listIndex) { ObjectPoolList list = catalog[listIndex]; LoadList(list); } m_Loaded = true; }
private void Awake() { #region SINGLETON PATTERN if (_instance == null) { _instance = this; } else { Destroy(gameObject); } #endregion // TODO: auto cicle through all the transform children and register all available pools to objectsList }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public History(String _decisionSettings, String _separator, org.maltparser.core.helper.HashMap<String, org.maltparser.core.symbol.TableHandler> _tableHandlers, int _kBestSize) throws org.maltparser.core.exception.MaltChainedException public History(string _decisionSettings, string _separator, HashMap <string, TableHandler> _tableHandlers, int _kBestSize) { tableHandlers = _tableHandlers; if (ReferenceEquals(_separator, null) || _separator.Length < 1) { separator = "~"; } else { separator = _separator; } kBestSize = _kBestSize; decisionTables = new List <TableContainer>(); actionTables = new List <TableContainer>(); decisionSettings = _decisionSettings; initDecisionSettings(); actionPool = new ObjectPoolListAnonymousInnerClass(this); clear(); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public HistoryList() throws org.maltparser.core.exception.MaltChainedException public HistoryList() : base() { list = new List <HistoryNode>(); nodePool = new ObjectPoolListAnonymousInnerClass(this); }
private void Awake() { instance = instance ?? this; }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public SyntaxGraph(org.maltparser.core.symbol.SymbolTableHandler symbolTables) throws org.maltparser.core.exception.MaltChainedException public SyntaxGraph(SymbolTableHandler symbolTables) { this.symbolTables = symbolTables; labelSetPool = new ObjectPoolListAnonymousInnerClass(this); }
public HistoryTree() : base() { nodePool = new ObjectPoolListAnonymousInnerClass(this); root = new HistoryTreeNode(null, null); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public Sentence(org.maltparser.core.symbol.SymbolTableHandler symbolTables) throws org.maltparser.core.exception.MaltChainedException public Sentence(SymbolTableHandler symbolTables) : base(symbolTables) { terminalNodes = new SortedDictionary <int, Token>(); terminalPool = new ObjectPoolListAnonymousInnerClass(this); comments = new HashMap <int, List <string> >(); }