当前位置: 首页>>代码示例>>C#>>正文


C# Entity.AttechAbility方法代码示例

本文整理汇总了C#中System.Entity.AttechAbility方法的典型用法代码示例。如果您正苦于以下问题:C# Entity.AttechAbility方法的具体用法?C# Entity.AttechAbility怎么用?C# Entity.AttechAbility使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Entity的用法示例。


在下文中一共展示了Entity.AttechAbility方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: _SetAbility

        protected override void _SetAbility(Entity.AbilitySet abilitys)
        {
            _MoverAbility = new ActorMoverAbility(_Property.Direction, _Property.Position.X, _Property.Position.Y);
            _MoverAbility.ActionEvent += _OnAction;
            _MoverAbility.PositionEvent += _OnPosition;

            abilitys.AttechAbility<IMoverAbility>(_MoverAbility);

            _QuadTreeObjectAbility = new PhysicalAbility(new Regulus.Types.Rect(_Property.Position.X - _BodyWidth / 2, _Property.Position.Y - _BodyHeight / 2, _BodyWidth, _BodyHeight), this);
            abilitys.AttechAbility<PhysicalAbility>(_QuadTreeObjectAbility);
        }
开发者ID:kof1016,项目名称:Regulus,代码行数:11,代码来源:Actor.cs

示例2: _SetAbility

        protected override void _SetAbility(Entity.AbilitySet abilitys)
        {
            _ObservedAbility = new PlayerObservedAbility(this, _DBActorInfomation);
            abilitys.AttechAbility<IObservedAbility>(_ObservedAbility);

            _ObserveAbility = new PlayerObserveAbility( _DBActorInfomation);
            abilitys.AttechAbility<IObserveAbility>(_ObserveAbility);

            _CrossAbility = new CrossAbility();
            abilitys.AttechAbility<ICrossAbility>(_CrossAbility);

            _CrossAbility.MoveEvent += _CrossAbility_MoveEvent;

            base._SetAbility(abilitys);
        }
开发者ID:jiowchern,项目名称:Regulus,代码行数:15,代码来源:Player.cs

示例3: _SetAbility

 protected override void _SetAbility(Entity.AbilitySet abilitys)
 {
     abilitys.AttechAbility<PhysicalAbility>(_QuadTreeObjectAbility);
     abilitys.AttechAbility<IMoverAbility>(this);
 }
开发者ID:kof1016,项目名称:Regulus,代码行数:5,代码来源:StaticEntity.cs

示例4: _SetAbility

 /// <summary>
 /// 設定功能
 /// </summary>
 /// <param name="abilitys">現有功能Dict</param>
 protected override void _SetAbility(Entity.AbilitySet abilitys)
 {
     abilitys.AttechAbility<IObserveAbility>(this);
 }
开发者ID:jiowchern,项目名称:Regulus,代码行数:8,代码来源:PortalEntity.cs

示例5: _SetAbility

        /// <summary>
        /// 設定功能
        /// </summary>
        /// <param name="abilitys">現有功能Dict</param>
        protected override void _SetAbility(Entity.AbilitySet abilitys)
        {
            _ObservedAbility = new PlayerObservedAbility(this, _DBActorInfomation);
            abilitys.AttechAbility<IObservedAbility>(_ObservedAbility);

            _ObserveAbility = new PlayerObserveAbility( _DBActorInfomation);
            abilitys.AttechAbility<IObserveAbility>(_ObserveAbility);

            _CrossAbility = new CrossAbility();
            abilitys.AttechAbility<ICrossAbility>(_CrossAbility);

            if(_DBActorInfomation.Property.Identity == Serializable.EntityPropertyInfomation.IDENTITY.CONVERSATION)
            {
                _TeacherAbility = new Session.StuffTeacher(this);
                abilitys.AttechAbility<Session.StuffTeacher>(_TeacherAbility);
            }

            _StudentAbility = new Session.StuffStudent(this);
            abilitys.AttechAbility<Session.StuffStudent>(_StudentAbility);

            base._SetAbility(abilitys);
        }
开发者ID:jiowchern,项目名称:Regulus,代码行数:26,代码来源:Player.cs

示例6: _SetAbility

        /// <summary>
        /// 設定功能
        /// </summary>
        /// <param name="abilitys">現有功能Dict</param>
        protected override void _SetAbility(Entity.AbilitySet abilitys)
        {
            _MoverAbility = new ActorMoverAbility2(_Property.Direction, _Property.Position.X, _Property.Position.Y);
            _MoverAbility.ActionEvent += _OnAction;
            _MoverAbility.PositionEvent += _OnPosition;

            abilitys.AttechAbility<IMoverAbility>(_MoverAbility);

            _QuadTreeObjectAbility = new PhysicalAbility(new Regulus.CustomType.Rect(_Property.Position.X - _BodyWidth / 2, _Property.Position.Y - _BodyHeight / 2, _BodyWidth, _BodyHeight), this);
            abilitys.AttechAbility<PhysicalAbility>(_QuadTreeObjectAbility);
            abilitys.AttechAbility<IBehaviorAbility>(_Behavior);
            abilitys.AttechAbility<IBehaviorCommandAbility>(_Behavior);

            abilitys.AttechAbility<IActorPropertyAbility>(_PropertyAbility);
            abilitys.AttechAbility<IActorUpdateAbility>(_PropertyAbility);
            abilitys.AttechAbility<ISkillCaptureAbility>(_PropertyAbility);
        }
开发者ID:jiowchern,项目名称:Regulus,代码行数:21,代码来源:Actor.cs


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