本文整理汇总了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);
}
示例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);
}
示例3: _SetAbility
protected override void _SetAbility(Entity.AbilitySet abilitys)
{
abilitys.AttechAbility<PhysicalAbility>(_QuadTreeObjectAbility);
abilitys.AttechAbility<IMoverAbility>(this);
}
示例4: _SetAbility
/// <summary>
/// 設定功能
/// </summary>
/// <param name="abilitys">現有功能Dict</param>
protected override void _SetAbility(Entity.AbilitySet abilitys)
{
abilitys.AttechAbility<IObserveAbility>(this);
}
示例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);
}
示例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);
}