Exemple #1
0
        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();
        }
Exemple #2
0
 private CGemPropability GetGemPropability(IEnumerable <CGemEnum> aGemEnums)
 => CGemPropability.NewFromEnum <CGemEnum>(this, aGemEnums.ToArray());
Exemple #3
0
 private CGemPropability[] NewCategoryToPropabilityMap()
 => this.NewCategoryToGemMap().Select(ges => CGemPropability.NewFromEnum <CGemEnum>(this, ges)).ToArray();