CScriptableObjectValue

Introduction

This file contains everything that is needed to interface Stacksmith's CConcreteObject-based object hierarchy (buttons, fields, cards) with the Leonie bytecode interpreter. This allows performing common operations on them (like retrieve property values, change their value, call handlers in their scripts, add user properties etc.

So that the Leonie bytecode interpreter can deal with objects of this type, it also defines kLeoValueTypeScriptableObject, which is like a native object, but guarantees that the object conforms to the CScriptableObject protocol.

You can create such a value using the CInitScriptableObjectValue function, just like any other values.



Classes

CScriptableObject
CScriptContextUserData