本文整理汇总了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);
}
示例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();
}
示例3: SetSceneGraphRender
public void SetSceneGraphRender(ScriptThread thread)
{
Fusion.GlobalInstance.Window.RenderSceneGraph = thread.GetBooleanParameter(0);
}
示例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));
}
示例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);
}
示例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);
}