static public int get_PoolType(IntPtr l) { try { XPool self = (XPool)checkSelf(l); pushValue(l, true); pushEnum(l, (int)self.PoolType); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int clear(IntPtr l) { try { XPool self = (XPool)checkSelf(l); self.clear(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int get__minSize(IntPtr l) { try { XPool self = (XPool)checkSelf(l); pushValue(l, true); pushValue(l, self._minSize); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int set_PoolType(IntPtr l) { try { XPool self = (XPool)checkSelf(l); XPoolType v; checkEnum(l, 2, out v); self.PoolType = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int createPool_s(IntPtr l) { try { System.String a1; checkType(l, 1, out a1); var ret = XPool.createPool(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int set__minSize(IntPtr l) { try { XPool self = (XPool)checkSelf(l); System.Int32 v; checkType(l, 2, out v); self._minSize = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int isWrong(IntPtr l) { try { XPool self = (XPool)checkSelf(l); System.Object a1; checkType(l, 2, out a1); var ret = self.isWrong(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
public XPool getPool(string str, XPoolType tp) { if (_pools.ContainsKey(str)) { if (tp != _pools[str].PoolType) { XDebug.LogError("!!注意!!2次获取的同名pool类型不一样" + str); } return(_pools[str]); } XPool pool = null; if (tp == XPoolType.SINGLE) { pool = XSinglePool.createPool(str); } else if (tp == XPoolType.INTKEY) { pool = XIntKeyPool.createPool(str); } else if (tp == XPoolType.STRKEY) { pool = XStrKeyPool.createPool(str); } else if (tp == XPoolType.GOSINGLE) { pool = XGOSinglePool.createPool(str); } else if (tp == XPoolType.GOINTKEY) { pool = XGOIntKeyPool.createPool(str); } else if (tp == XPoolType.GOSTRKEY) { pool = XGOStrKeyPool.createPool(str); } if (pool != null) { pool.transform.SetParent(this.transform); _pools.Add(str, pool); } return(pool); }