Пример #1
0
        internal TerrainContainer(Instance instance)
        {
            this.instance = instance;
            instance.setNativeEvent(Events.TerrainNode, OnTerrainNode);

            instance.setNativeCallback(Callbacks.TerrainNodeSet, OnNodeSetCallback);
        }
Пример #2
0
        internal PropertyContainer(Instance instance)
        {
            this.instance = instance;
            instance.setNativeEvent(Events.Object, OnObjectCreate);
            instance.setNativeEvent(Events.ObjectChange, OnObjectChange);
            instance.setNativeEvent(Events.ObjectDelete, OnObjectDelete);
            instance.setNativeEvent(Events.ObjectClick, OnObjectClick);
            instance.setNativeEvent(Events.ObjectBumpBegin, OnObjectBumpBegin);
            instance.setNativeEvent(Events.ObjectBumpEnd, OnObjectBumpEnd);
            instance.setNativeEvent(Events.QueryCellEnd, OnQueryCellEnd);

            instance.setNativeCallback(Callbacks.ObjectAdd, OnObjectCreateCallback);
            instance.setNativeCallback(Callbacks.ObjectChange, OnObjectChangeCallback);
            instance.setNativeCallback(Callbacks.ObjectDelete, OnObjectDeleteCallback);
            instance.setNativeCallback(Callbacks.ObjectGet, OnObjectGetCallback);
        }