コード例 #1
0
 protected LightmapColorMatrixChangedAction(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     _actionName = info.GetString("_actionName");
       _dlg = (LightmapToolDlg)info.GetValue("_dlg", typeof(LightmapToolDlg));
       _oldBase = (ColorMatrixParams)info.GetValue("_oldBase", typeof(ColorMatrixParams));
       _newBase = (ColorMatrixParams)info.GetValue("_newBase", typeof(ColorMatrixParams));
       _oldRadiosity = (ColorMatrixParams)info.GetValue("_oldRadiosity", typeof(ColorMatrixParams));
       _newRadiosity = (ColorMatrixParams)info.GetValue("_newRadiosity", typeof(ColorMatrixParams));
       _bFirst = info.GetBoolean("_bFirst");
       _target = (LightmapToolDlg.TweakTarget)info.GetValue("_target", typeof(LightmapToolDlg.TweakTarget));
 }
コード例 #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public LightmapColorMatrixChangedAction(LightmapToolDlg dlg, string actionName, ColorMatrixParams oldBase, ColorMatrixParams newBase, ColorMatrixParams oldRadiosity, ColorMatrixParams newRadiosity)
        {
            _dlg = dlg;
              _actionName = actionName;
              _oldBase = oldBase;
              _newBase = newBase;
              _oldRadiosity = oldRadiosity;
              _newRadiosity = newRadiosity;
              Debug.Assert(_oldBase!=null);
              Debug.Assert(_newBase!=null);
              Debug.Assert(_oldRadiosity!=null);
              Debug.Assert(_newRadiosity!=null);

              _target = _dlg.Target;
        }