static object PerformMemberwiseClone(ref object o) { var ins = new UnityEngine.FogMode(); ins = (UnityEngine.FogMode)o; return(ins); }
static int QPYX_set_fogMode_YXQP(IntPtr L_YXQP) { try { UnityEngine.FogMode QPYX_arg0_YXQP = (UnityEngine.FogMode)ToLua.CheckObject(L_YXQP, 2, typeof(UnityEngine.FogMode)); UnityEngine.RenderSettings.fogMode = QPYX_arg0_YXQP; return(0); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int set_fogModeter(IntPtr L) { try { UnityEngine.FogMode arg0 = (UnityEngine.FogMode)LuaDLL.luaL_checknumber(L, 1); UnityEngine.RenderSettings.fogMode = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_fogMode(IntPtr L) { try { UnityEngine.FogMode arg0 = (UnityEngine.FogMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.FogMode)); UnityEngine.RenderSettings.fogMode = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static StackObject *set_fogMode_3(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.FogMode value = (UnityEngine.FogMode) typeof(UnityEngine.FogMode).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); UnityEngine.RenderSettings.fogMode = value; return(__ret); }
// ctor public EventArgs( float smoothing_duration = -1.0f, UnityEngine.FogMode fog_mode = UnityEngine.FogMode.Linear, float fog_start_distance = -1.0f, float fog_end_distance = -1.0f, UnityEngine.Color fog_color = new UnityEngine.Color() ) : base() { // assign this.SmoothingDuration = smoothing_duration; this.FogMode = fog_mode; this.FogStartDistance = fog_start_distance; this.FogEndDistance = fog_end_distance; this.FogColor = fog_color; }
static void WriteBackInstance(CSHotFix.Runtime.Enviorment.AppDomain __domain, StackObject *ptr_of_this_method, IList <object> __mStack, ref UnityEngine.FogMode instance_of_this_method) { ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method); switch (ptr_of_this_method->ObjectType) { case ObjectTypes.Object: { __mStack[ptr_of_this_method->Value] = instance_of_this_method; } break; case ObjectTypes.FieldReference: { var ___obj = __mStack[ptr_of_this_method->Value]; if (___obj is ILTypeInstance) { ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = instance_of_this_method; } else { var t = __domain.GetType(___obj.GetType()) as CLRType; t.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, instance_of_this_method); } } break; case ObjectTypes.StaticFieldReference: { var t = __domain.GetType(ptr_of_this_method->Value); if (t is ILType) { ((ILType)t).StaticInstance[ptr_of_this_method->ValueLow] = instance_of_this_method; } else { ((CLRType)t).SetStaticFieldValue(ptr_of_this_method->ValueLow, instance_of_this_method); } } break; case ObjectTypes.ArrayReference: { var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as UnityEngine.FogMode[]; instance_of_arrayReference[ptr_of_this_method->ValueLow] = instance_of_this_method; } break; } }
static int set_fogMode(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("UnityEngine.RenderSettings.fogMode"); #endif try { UnityEngine.FogMode arg0 = (UnityEngine.FogMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.FogMode)); UnityEngine.RenderSettings.fogMode = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_fogMode(IntPtr L) { UnityEngine.FogMode arg0 = (UnityEngine.FogMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.FogMode)); UnityEngine.RenderSettings.fogMode = arg0; return(0); }
} /* Awake() */ #endregion public void SetFogParameter( UnityEngine.FogMode fog_mode, float fog_start_distance, float fog_end_distance, UnityEngine.Color fog_color, float smoothing_duration = -1.0f ) { // switch on requested switch(fog_mode) { case UnityEngine.FogMode.Linear: default: { // log UnityEngine.Debug.Log( "<color=Blue>Info: </color> ApollonFogElementBehaviour.SetFogParameter() : call with following parameter [" + "mode:" + UnityEngine.FogMode.Linear + ",fog_start_distance:" + fog_start_distance + ",fog_end_distance:" + fog_end_distance + ",fog_color:" + fog_color + ",smoothing_duration:" + smoothing_duration + "]" ); // default int smoothing_factor = 1; // get smoothing factor if(smoothing_duration != -1.0f) { smoothing_factor = UnityEngine.Mathf.CeilToInt( smoothing_duration / ( UnityEngine.Time.fixedDeltaTime * 1000.0f ) ); } // get increment from current this.FogStartDistanceIncrement = ( fog_start_distance - this.CurrentFogStartDistance ) / smoothing_factor; this.FogEndDistanceIncrement = ( fog_end_distance - this.CurrentFogEndDistance ) / smoothing_factor; this.FogColorIncrement = ( fog_color - this.CurrentFogColor ) / smoothing_factor; // log UnityEngine.Debug.Log( "<color=Blue>Info: </color> ApollonFogElementBehaviour.SetFogParameter() : calculated parameter [" + "smoothing_factor:" + smoothing_factor + ",FogStartDistanceIncrement:" + this.FogStartDistanceIncrement + ",FogEndDistanceIncrement:" + this.FogEndDistanceIncrement + ",FogColorIncrement:" + this.FogColorIncrement + "]" ); // assign new mode & remaining counter this.CurrentFogMode = fog_mode; this.SmoothingRemainingIncrementCounter = smoothing_factor; // end break; } /* -default- Linear */ } /* switch() */ } /* SetFogParameter() */