コード例 #1
0
 public FieldAccessor(PanelEntry panel, bool editable = true)
 {
     _type     = 2;
     _panel    = panel;
     _editable = editable;
     _raw      = new RawAccessor(_panel);
 }
コード例 #2
0
 public FieldAccessor(InputForm inputform, Asset parent, bool editable = true)
 {
     _type      = 3;
     _inputform = inputform;
     _asset     = parent;
     _raw       = new RawAccessor(_asset);
 }
コード例 #3
0
 public FieldAccessor(PanelEntry panel, Asset parent, bool editable = true)
 {
     //Need a way to reference the parent Asset of a Panel without needing to always pass both to a function.
     //Its annoying because there is no better API functionality when dealing with Assets and their children Panels.
     _type     = 2;
     _panel    = panel;
     _asset    = parent;
     _editable = editable;
     _raw      = new RawAccessor(_panel);
 }
コード例 #4
0
 public FieldAccessor(Asset source, bool editable = true)
 {
     if (source == null)
     {
         throw new ArgumentNullException("source");
     }
     _type     = 1;
     _asset    = source;
     _editable = editable;
     _raw      = new RawAccessor(_asset);
 }