예제 #1
0
        public IDictionary <int, TechTreeNode> GetNodes()
        {
            var prices = GetPrices();

            return(Db.Query().CommandText("select * from techtree").Execute().Select(r =>
            {
                var node = TechTreeNode.CreateFromDataRecord(r);
                node.Prices = prices[node.Definition].ToArray();
                return node;
            }).ToDictionary(n => n.Definition));
        }
예제 #2
0
 public void NodeUnlocked(long owner, TechTreeNode node)
 {
 }
 public void NodeUnlocked(long owner, TechTreeNode node)
 {
     _nodes.Remove(owner);
 }