Пример #1
0
    public static CardEntity CreateDeckCard(this CardContext context, DeckCard type)
    {
        var entity = context.CreateEntity();

        entity.AddDeckCard(type);
        return(entity);
    }
 protected override void Execute(List <UnitEntity> entities)
 {
     foreach (var e in entities)
     {
         foreach (var skill in e.characterSkillsResource.Skills)
         {
             var card = _cardContext.CreateEntity();
             card.AddSkillCard(skill);
             card.AddOwner(e.owner.Entity);
         }
     }
 }