Api Sandbox Bind BindSystem
class

BindSystem

public class BindSystem

Data bind system, bind properties to each other.

Properties

Name Type Description
Name String The debug name given to this system (ie Tools, Client, Server)
ThrottleUpdates Boolean If true we'll throttle time between link change checks. This should always be enabled in game, for performance reasons.
CatchExceptions Boolean If true we'll catch and remove exceptions when testing links instead of propagating them to the Tick call.
LinkCount Int32 The current amount of active links
Build Builder A helper to create binds between two properties (or whatever you want)

Methods

Void Tick()

Should be called every frame. Will run through the links and check for changes, then action those changes. Will also remove dead links.

Void Flush()

Call a tick with no timer limits, forcing all pending actions to be actioned

Attribute[] FindAttributes(T obj, String property)

For this object, with this property, find the property that supplies it and return any attributes set on it. This is useful for editors to allow them to supply the correct editor, without having access to the property.

Assembly: Sandbox.Bind Namespace: Sandbox.Bind Full Name: Sandbox.Bind.BindSystem