示例#1
0
        public override void Reload(API api, ref double maxValue)
        {
            base.Reload(api, ref maxValue);

            string parentName = api.ReadString(ParentParameter, "");

            parent = DataMeasure.GetMeasure(parentName, Skin);
            if (parent == null)
            {
                API.Log(API.LogType.Error, $"Rainnet.dll: {ParentParameter} = {parentName} not valid");
            }

            property = DataMeasure.ReadSessionProperty(api, "Property");
        }
示例#2
0
        public static void Initialize(ref IntPtr data, IntPtr rm)
        {
            API api = new API(rm);

            string  parent = api.ReadString(OutputMeasure.ParentParameter, "");
            Measure measure;

            if (String.IsNullOrEmpty(parent))
            {
                measure = new DataMeasure();
            }
            else
            {
                measure = new OutputMeasure();
            }

            data = GCHandle.ToIntPtr(GCHandle.Alloc(measure));
        }