static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); ParticleRenderMode o = (ParticleRenderMode)arg0; LuaScriptMgr.PushEnum(L, o); return(1); }
public static ParticleRenderMode Parse(string s, ParticleRenderMode defaultValue) { try { return (ParticleRenderMode)Enum.Parse(typeof(ParticleRenderMode), s); } catch { return defaultValue; } }
public static ParticleRenderMode Parse(string s, ParticleRenderMode defaultValue) { try { return((ParticleRenderMode)Enum.Parse(typeof(ParticleRenderMode), s)); } catch { return(defaultValue); } }
public void UpdateShockwave() { this._shockwave.get_transform().set_localPosition(Vector3.Scale(this.localPosition, new Vector3(this.size, this.size, this.size))); this._shockwaveEmitter.color = this.color; this._shockwaveEmitter.duration = this.duration; this._shockwaveEmitter.durationVariation = this.duration * 0.1f; this._shockwaveEmitter.count = 1f; this._shockwaveEmitter.detail = 1f; this._shockwaveEmitter.particleSize = 25f; this._shockwaveEmitter.sizeVariation = 0f; this._shockwaveEmitter.velocity = new Vector3(0f, 0f, 0f); this._shockwaveEmitter.startRadius = 0f; this._shockwaveEmitter.sizeGrow = 202f; this._shockwaveEmitter.size = this.size; this._shockwaveEmitter.explodeDelayMin = this.explodeDelayMin; this._shockwaveEmitter.explodeDelayMax = this.explodeDelayMax; this._shockwaveEmitter.renderMode = this.renderMode; }
private static int get_particleRenderMode(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); ParticleRenderer particleRenderer = (ParticleRenderer)obj; ParticleRenderMode particleRenderMode = particleRenderer.get_particleRenderMode(); ToLua.Push(L, particleRenderMode); result = 1; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.get_Message() : "attempt to index particleRenderMode on a nil value"); } return(result); }
private static int set_particleRenderMode(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); ParticleRenderer particleRenderer = (ParticleRenderer)obj; ParticleRenderMode particleRenderMode = (int)ToLua.CheckObject(L, 2, typeof(ParticleRenderMode)); particleRenderer.set_particleRenderMode(particleRenderMode); result = 0; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.get_Message() : "attempt to index particleRenderMode on a nil value"); } return(result); }
private static extern void Internal_setrenderMode(IntPtr thisPtr, ParticleRenderMode value);