InstanceInterface

InstanceInterface Class

Base class for all Sansar Script Object Oriented C# interfaces.

Syntax

public class InstanceInterface

Remarks

Internal.

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0

Members

See Also: Inherited members from object.

Public Properties

[read-only]
 
IsValid bool . Whether or not this interface is valid.

Public Operators

static
Conversion to System.IntPtr (Implicit) Internal use only.

Member Details

IsValid Property

Whether or not this interface is valid.

Syntax

public bool IsValid { get; }

Value

True if this interface is valid

Remarks

This function is provided for debugging and convenience only. Scripts are frequently "force yielded", which means there is still the (rare) possibility that on the line after checking IsValid the interface could become invalid. It is highly recommended to "program defensively" and wrap the use of volatile interfaces, like AgentPrivate, in try/catch blocks. Once an interface becomes invalid it will never again become valid. Attempting to call any method on an invalid interface may throw an exception.

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0

Conversion Method

Internal use only.

Syntax

public static implicit operator IntPtr (InstanceInterface instance)

Parameters

instance

Returns

Remarks

 

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.