当前位置: 首页>>代码示例>>C#>>正文


C# ScriptThread.GetBooleanParameter方法代码示例

本文整理汇总了C#中BinaryPhoenix.Fusion.Runtime.Scripting.ScriptThread.GetBooleanParameter方法的典型用法代码示例。如果您正苦于以下问题:C# ScriptThread.GetBooleanParameter方法的具体用法?C# ScriptThread.GetBooleanParameter怎么用?C# ScriptThread.GetBooleanParameter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BinaryPhoenix.Fusion.Runtime.Scripting.ScriptThread的用法示例。


在下文中一共展示了ScriptThread.GetBooleanParameter方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InvokeThreadFunction

 public void InvokeThreadFunction(ScriptThread thread)
 {
     ScriptThread actionThread = ((NativeObject)thread.GetObjectParameter(0)).Object as ScriptThread;
     if (actionThread == null)
     {
         DebugLogger.WriteLog((thread.Process.Url != null && thread.Process.Url != "" ? thread.Process.Url : "A script") + " called InvokeThreadFunction with an invalid object.", LogAlertLevel.Error);
         return;
     }
     actionThread.InvokeFunction(thread.GetStringParameter(1), thread.GetBooleanParameter(2), thread.GetBooleanParameter(3), false);
 }
开发者ID:HampsterEater,项目名称:FusionGameEngine,代码行数:10,代码来源:Thread.cs

示例2: ExecuteFile

 public void ExecuteFile(ScriptThread thread)
 {
     Process process = new Process();
     process.StartInfo.FileName = thread.GetStringParameter(0);
     process.StartInfo.Arguments = thread.GetStringParameter(1);
     process.StartInfo.Verb = "Open";
     process.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
     process.Start();
     if (thread.GetBooleanParameter(2) == true) process.WaitForExit();
 }
开发者ID:HampsterEater,项目名称:FusionGameEngine,代码行数:10,代码来源:Runtime.cs

示例3: SetSceneGraphRender

 public void SetSceneGraphRender(ScriptThread thread)
 {
     Fusion.GlobalInstance.Window.RenderSceneGraph = thread.GetBooleanParameter(0);
 }
开发者ID:HampsterEater,项目名称:FusionGameEngine,代码行数:4,代码来源:Fusion.cs

示例4: StreamWriteA

 public void StreamWriteA(ScriptThread thread)
 {
     ScriptStream stream = ((NativeObject)thread.GetObjectParameter(0)).Object as ScriptStream;
     if (stream == null)
     {
         DebugLogger.WriteLog((thread.Process.Url != null && thread.Process.Url != "" ? thread.Process.Url : "A script") + " called StreamWrite with an invalid object.", LogAlertLevel.Error);
         return;
     }
     stream.Writer.Write(thread.GetBooleanParameter(1));
 }
开发者ID:HampsterEater,项目名称:FusionGameEngine,代码行数:10,代码来源:IO.cs

示例5: SetChannelLooping

 public void SetChannelLooping(ScriptThread thread)
 {
     ISampleBuffer sound = ((NativeObject)thread.GetObjectParameter(0)).Object as ISampleBuffer;
     if (sound == null)
     {
         DebugLogger.WriteLog((thread.Process.Url != null && thread.Process.Url != "" ? thread.Process.Url : "A script") + " called SetChannelLooping with an invalid object.", LogAlertLevel.Error);
         return;
     }
     sound.Looping = thread.GetBooleanParameter(1);
 }
开发者ID:HampsterEater,项目名称:FusionGameEngine,代码行数:10,代码来源:Audio.cs

示例6: SetEntityVisible

 public void SetEntityVisible(ScriptThread thread)
 {
     EntityNode entity = ((NativeObject)thread.GetObjectParameter(0)).Object as EntityNode;
     if (entity == null)
     {
         DebugLogger.WriteLog((thread.Process.Url != null && thread.Process.Url != "" ? thread.Process.Url : "A script") + " called SetEntityVisible with an invalid object.", LogAlertLevel.Error);
         return;
     }
     entity.IsVisible = thread.GetBooleanParameter(1);
 }
开发者ID:HampsterEater,项目名称:FusionGameEngine,代码行数:10,代码来源:Entity.cs


注:本文中的BinaryPhoenix.Fusion.Runtime.Scripting.ScriptThread.GetBooleanParameter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。