Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
IDataCustomVisitor.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 
5 namespace SiliconStudio.Core.Reflection
6 {
7  /// <summary>
8  /// A custom visitor used by <see cref="DataVisitorBase"/>.
9  /// </summary>
10  public interface IDataCustomVisitor
11  {
12  /// <summary>
13  /// Determines whether this instance can visit the specified object.
14  /// </summary>
15  /// <param name="type"></param>
16  /// <returns><c>true</c> if this instance can visit the specified object; otherwise, <c>false</c>.</returns>
17  bool CanVisit(Type type);
18 
19  /// <summary>
20  /// Visits the specified object.
21  /// </summary>
22  /// <param name="context">The context.</param>
23  void Visit(ref VisitorContext context);
24  }
25 }
A custom visitor used by DataVisitorBase.