Inheritance: IComponent
        public Entity AddCoins(int newCount)
        {
            var component = new CoinsComponent();

            component.count = newCount;
            return(AddCoins(component));
        }
        public Entity SetCoins(CoinsComponent component)
        {
            if (hasCoins)
            {
                throw new SingleEntityException(MetaMatcher.Coins);
            }
            var entity = CreateEntity();

            entity.AddCoins(component);
            return(entity);
        }
 public Entity ReplaceCoins(int newCount)
 {
     CoinsComponent component;
     if (hasCoins) {
         WillRemoveComponent(MetaComponentIds.Coins);
         component = coins;
     } else {
         component = new CoinsComponent();
     }
     component.count = newCount;
     return ReplaceComponent(MetaComponentIds.Coins, component);
 }
        public Entity ReplaceCoins(int newCount)
        {
            CoinsComponent component;

            if (hasCoins)
            {
                WillRemoveComponent(MetaComponentIds.Coins);
                component = coins;
            }
            else
            {
                component = new CoinsComponent();
            }
            component.count = newCount;
            return(ReplaceComponent(MetaComponentIds.Coins, component));
        }
 public Entity AddCoins(CoinsComponent component)
 {
     return(AddComponent(MetaComponentIds.Coins, component));
 }
 public Entity SetCoins(CoinsComponent component)
 {
     if (hasCoins) {
         throw new SingleEntityException(MetaMatcher.Coins);
     }
     var entity = CreateEntity();
     entity.AddCoins(component);
     return entity;
 }
 public Entity AddCoins(int newCount)
 {
     var component = new CoinsComponent();
     component.count = newCount;
     return AddCoins(component);
 }
 public Entity AddCoins(CoinsComponent component)
 {
     return AddComponent(MetaComponentIds.Coins, component);
 }