コード例 #1
0
        protected void LoadBaseXml(XElement xml, PackagePart part)
        {
            int i = 1;

            Counters = xml.Elements(Defs.XmlnsOctgn + "counter")
                       .Select(x => CounterDef.LoadFromXml(x, part, i++))
                       .ToArray();
            i      = 1;
            Groups = xml.Elements(Defs.XmlnsOctgn + "group")
                     .Select(x => GroupDef.LoadFromXml(x, part, i++))
                     .ToArray();
        }
コード例 #2
0
ファイル: Counter.cs プロジェクト: kellyelton/octgnwlobby
        private int state; // Value of this counter

        #endregion Fields

        #region Constructors

        // C'tor
        public Counter(Player player, CounterDef def)
        {
            this.player = player;
              state = def.Start; _name = def.Name; id = def.Id;
              defintion = def;
        }