internal CGemSpriteManager(CServiceLocatorNode aParent) : base(aParent) { this.AddOnAllocate = true; this.RandomGenerator = new CRandomGenerator(this); this.RandomGenerator.Begin(); this.GemPropability = CGemPropability.NewFromEnum <CGemEnum>(this); this.CategoryToPropabilityMap = this.NewCategoryToPropabilityMap(); this.World.SpriteDestroyedByShot += this.OnSpriteDestroyedByShot; this.Init(); }
private CGemPropability GetGemPropability(IEnumerable <CGemEnum> aGemEnums) => CGemPropability.NewFromEnum <CGemEnum>(this, aGemEnums.ToArray());
private CGemPropability[] NewCategoryToPropabilityMap() => this.NewCategoryToGemMap().Select(ges => CGemPropability.NewFromEnum <CGemEnum>(this, ges)).ToArray();