コード例 #1
0
        protected SharedListChild(ISharedListParent parent)
        {
            Parent = parent
                     ?? throw new ArgumentNullException(nameof(parent));

            Parent.Children.Add(this);
        }
コード例 #2
0
 protected override ISharedListChild <ChrTile> Create(
     ISharedListParent parent)
 {
     return(new ChrTileEditor(parent)
     {
         StartOffset = StartOffset,
     });
 }
コード例 #3
0
        protected override ISharedListChild <GfxTile> Create(
            ISharedListParent parent)
        {
            var result = new GfxEditor(parent)
            {
                GraphicsFormat = GraphicsFormat,
                StartOffset    = StartOffset,
            };

            return(result);
        }
コード例 #4
0
 protected abstract ISharedListChild <T> Create(
     ISharedListParent parent);
コード例 #5
0
 protected SharedListChildEditor(ISharedListParent parent)
     : base(parent)
 {
     Parent = null;
 }
コード例 #6
0
 private ChrTileEditor(ISharedListParent parent)
     : base(parent)
 {
 }
コード例 #7
0
 private GfxEditor(ISharedListParent parent)
     : base(parent)
 {
 }