Esempio n. 1
0
        public Game(RawNode knivesSettings, RawNode settings)
        {
            m_rnd            = new Random();
            m_settings       = settings;
            m_knivesSettings = knivesSettings;

            m_knife = new Knife();
            m_knife.throwSuccess += OnKnifeThrowSuccess;

            m_score = 0;
            m_perfectFlipCounter = 0;
            m_knifeMode          = KnifeMode.Medium;

            m_stepAwardCalculator = new StepAwardCalculator(
                requiredScore: m_settings.GetIntArray("flips_bonus_flips"),
                awards: m_settings.GetIntArray("flips_bonus_gold")
                );
        }
 public SetAmount(RawNode node, IContext context)
     : base(node, context)
 {
     _elements = node.GetIntArray("elements");
     _random   = PathUtil.GetModelPath(GetContext(), node.GetString("random"), null).GetSelf <Random>();
 }