• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# Walker类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Walker的典型用法代码示例。如果您正苦于以下问题:C# Walker类的具体用法?C# Walker怎么用?C# Walker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Walker类属于命名空间,在下文中一共展示了Walker类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Walk

 public override void Walk(Walker.TotemWalker walker)
 {
     if (walker.Walk(this))
     {
     }
     walker.PostWalk(this);
 }
开发者ID:Alxandr,项目名称:IronTotem-3.0,代码行数:7,代码来源:IdentifierExpr.cs


示例2: Initialize

    public void Initialize()
    {
        // Finding GameObjects
        m_object_player = GameObject.Find("Player");
        m_object_helpers = GameObject.Find ("Helpers");
        m_object_duckfield = GameObject.Find("Duckfield");
        m_object_audio = GameObject.Find("Audio");
        m_object_cameraman = GameObject.Find("Main Camera");

        // Finding Components
        m_collision_prober = m_object_player.GetComponent<CollisionProber>();
        m_scoring = m_object_player.GetComponent<Scoring>();
        m_health = m_object_player.GetComponent<Health>();
        m_walker = m_object_player.GetComponent<Walker>();
        m_jumper = m_object_player.GetComponent<Jumper>();

        m_time_helper = m_object_helpers.GetComponent<TimeHelper>();
        m_screen_helper = m_object_helpers.GetComponent<ScreenHelper>();

        m_duckfield = m_object_duckfield.GetComponent<DuckField>();

        m_duckization = m_object_audio.GetComponent<DuckizationController>();

        m_cameraman = m_object_cameraman.GetComponent<Cameraman>();
        m_ig_menu = m_object_cameraman.GetComponent<IgMenu>();
    }
开发者ID:Zylann,项目名称:GGJ14,代码行数:26,代码来源:Game.cs


示例3: ImpossibleTrajectory

        public void ImpossibleTrajectory()
        {
            this.walker = new Walker(new Board(5, 9));

            Coord from = new Coord(0, 7), to = new Coord(4, 1);
            this.AssertBestProbToArrive(from, to, 0);
        }
开发者ID:yngwie74,项目名称:PegGame,代码行数:7,代码来源:WalkerTest.cs


示例4: From

 internal static SemanticMap From(SemanticModel semanticModel, SyntaxNode node, CancellationToken cancellationToken)
 {
     var map = new SemanticMap();
     var walker = new Walker(semanticModel, map, cancellationToken);
     walker.Visit(node);
     return map;
 }
开发者ID:robbert229,项目名称:omnisharp-roslyn,代码行数:7,代码来源:SemanticMap.cs


示例5: ReadGlow

        public void ReadGlow(GlowContainer glow, Client client)
        {
            var rootItem = new Item(null, _rootKey.Name, false, _rootKey);

             var walker = new Walker(this, client, rootItem);
             walker.Walk(glow);
        }
开发者ID:Lawo,项目名称:ember-plus,代码行数:7,代码来源:RegistryProvider.cs


示例6: sqlite3WalkExpr

    /*
    ** 2008 August 16
    **
    ** The author disclaims copyright to this source code.  In place of
    ** a legal notice, here is a blessing:
    **
    **    May you do good and not evil.
    **    May you find forgiveness for yourself and forgive others.
    **    May you share freely, never taking more than you give.
    **
    *************************************************************************
    ** This file contains routines used for walking the parser tree for
    ** an SQL statement.
    *************************************************************************
    **  Included in SQLite3 port to C#-SQLite;  2008 Noah B Hart
    **  C#-SQLite is an independent reimplementation of the SQLite software library
    **
    **  SQLITE_SOURCE_ID: 2010-08-23 18:52:01 42537b60566f288167f1b5864a5435986838e3a3
    **
    *************************************************************************
    */
    //#include "sqliteInt.h"
    //#include <stdlib.h>
    //#include <string.h>


    /*
    ** Walk an expression tree.  Invoke the callback once for each node
    ** of the expression, while decending.  (In other words, the callback
    ** is invoked before visiting children.)
    **
    ** The return value from the callback should be one of the WRC_*
    ** constants to specify how to proceed with the walk.
    **
    **    WRC_Continue      Continue descending down the tree.
    **
    **    WRC_Prune         Do not descend into child nodes.  But allow
    **                      the walk to continue with sibling nodes.
    **
    **    WRC_Abort         Do no more callbacks.  Unwind the stack and
    **                      return the top-level walk call.
    **
    ** The return value from this routine is WRC_Abort to abandon the tree walk
    ** and WRC_Continue to continue.
    */
    static int sqlite3WalkExpr( Walker pWalker, ref Expr pExpr )
    {
      int rc;
      if ( pExpr == null )
        return WRC_Continue;
      testcase( ExprHasProperty( pExpr, EP_TokenOnly ) );
      testcase( ExprHasProperty( pExpr, EP_Reduced ) );
      rc = pWalker.xExprCallback( pWalker, ref pExpr );
      if ( rc == WRC_Continue
      && !ExprHasAnyProperty( pExpr, EP_TokenOnly ) )
      {
        if ( sqlite3WalkExpr( pWalker, ref pExpr.pLeft ) != 0 )
          return WRC_Abort;
        if ( sqlite3WalkExpr( pWalker, ref pExpr.pRight ) != 0 )
          return WRC_Abort;
        if ( ExprHasProperty( pExpr, EP_xIsSelect ) )
        {
          if ( sqlite3WalkSelect( pWalker, pExpr.x.pSelect ) != 0 )
            return WRC_Abort;
        }
        else
        {
          if ( sqlite3WalkExprList( pWalker, pExpr.x.pList ) != 0 )
            return WRC_Abort;
        }
      }
      return rc & WRC_Abort;
    }
开发者ID:seeseekey,项目名称:CSCL,代码行数:73,代码来源:walker_c.cs


示例7: TwoHopTrajectory

        public void TwoHopTrajectory()
        {
            this.walker = new Walker(new Board(5, 5));

            Coord from = new Coord(0, 3), to = new Coord(2, 1);
            this.AssertBestProbToArrive(from, to, 0.25f);
        }
开发者ID:yngwie74,项目名称:PegGame,代码行数:7,代码来源:WalkerTest.cs


示例8: WalkNodes

 void WalkNodes(TreeNodeCollection nodes, Walker walker)
 {
     foreach (TreeNode n in nodes)
     {
         walker(n);
         WalkNodes(n.Nodes, walker);
     }
 }
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:8,代码来源:TreeCategorySelector.cs


示例9: Walk

 public override void Walk(Walker.TotemWalker walker)
 {
     if (walker.Walk(this))
     {
         _function.Walk(walker);
     }
     walker.PostWalk(this);
 }
开发者ID:Alxandr,项目名称:IronTotem-3.0,代码行数:8,代码来源:LambdaExpr.cs


示例10: Walk

 public override void Walk(Walker.TotemWalker walker)
 {
     if (walker.Walk(this))
     {
         foreach (var expr in _values)
             expr.Walk(walker);
     }
     walker.PostWalk(this);
 }
开发者ID:Alxandr,项目名称:IronTotem,代码行数:9,代码来源:ArrayLiteralExpression.cs


示例11: Walk

 public override void Walk(Walker.TotemWalker walker)
 {
     if (walker.Walk(this))
     {
         _left.Walk(walker);
         _right.Walk(walker);
     }
     walker.PostWalk(this);
 }
开发者ID:Alxandr,项目名称:IronTotem-3.0,代码行数:9,代码来源:AssignExpr.cs


示例12: Walk

 public override void Walk(Walker.TotemWalker walker)
 {
     if (walker.Walk(this))
     {
         foreach (var v in _vars)
             v.Walk(walker);
     }
     walker.PostWalk(this);
 }
开发者ID:Alxandr,项目名称:IronTotem,代码行数:9,代码来源:VarStatement.cs


示例13: Walk

 public override void Walk(Walker.TotemWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_expression != null)
             _expression.Walk(walker);
     }
     walker.PostWalk(this);
 }
开发者ID:Alxandr,项目名称:IronTotem,代码行数:9,代码来源:ReturnStatement.cs


示例14: Awake

    void Awake()
    {
	    GameManager.instance.staff.Add(this);
	    remainingNames=new List<string>(nameArray);
	    walker = gameObject.AddComponent<Walker>();
	    staffRenderer=GetComponentInChildren<StaffRenderer>();
	    selectionArrow=GetComponentInChildren<Bounce>().gameObject;
	    selectionArrow.SetActive(false);
        assignmentProgress = -1;
    }
开发者ID:JuanJosePol,项目名称:ggjmallorca2016,代码行数:10,代码来源:Staff.cs


示例15: Awake

    void Awake()
    {
        GameManager.instance.jammers.Add(this);
	    walker = gameObject.AddComponent<Walker>();
	    walker.isJammer=true;
	    GenerateJammerName();

        trollStaff = gameObject.GetComponentInChildren<TrollStaff>();
        wifiProblem = gameObject.GetComponentInChildren<WiFiProblem>();
    }
开发者ID:JuanJosePol,项目名称:ggjmallorca2016,代码行数:10,代码来源:Jammer.cs


示例16: Walk

 public override void Walk(Walker.TotemWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_target != null)
         {
             _target.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
开发者ID:Alxandr,项目名称:IronTotem,代码行数:11,代码来源:MemberExpression.cs


示例17: Walk

 public override void Walk(Walker.TotemWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_expr != null)
         {
             _expr.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
开发者ID:Alxandr,项目名称:IronTotem-3.0,代码行数:11,代码来源:Arg.cs


示例18: Walk

 public override void Walk(Walker.TotemWalker walker)
 {
     if (walker.Walk(this))
     {
         if (_defaultValue != null)
         {
             _defaultValue.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
开发者ID:Alxandr,项目名称:IronTotem-3.0,代码行数:11,代码来源:Parameter.cs


示例19: Walk

 public override void Walk(Walker.TotemWalker walker)
 {
     if (walker.Walk(this))
     {
         foreach (var val in _values)
         {
             val.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
开发者ID:Alxandr,项目名称:IronTotem-3.0,代码行数:11,代码来源:ArrayLiteralExpr.cs


示例20: Walk

 public override void Walk(Walker.TotemWalker walker)
 {
     if (walker.Walk(this))
     {
         _name.Walk(walker);
         if (_initializationValue != null)
         {
             _initializationValue.Walk(walker);
         }
     }
     walker.PostWalk(this);
 }
开发者ID:Alxandr,项目名称:IronTotem,代码行数:12,代码来源:VarInitialization.cs



注:本文中的Walker类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Wall类代码示例发布时间:2022-05-24
下一篇:
C# Waiter类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap