コード例 #1
0
        private static IResourceDepositData CreateStartResourceData()
        {
            var items = new[]
            {
                new ResourceDepositDataItem(SectorResourceType.CherryBrushes, START_RESOURCE_SHARE)
            };
            var data = new ResourceDepositData(items);

            return(data);
        }
コード例 #2
0
        private IResourceDepositData CalcCurrentResouceData(ISectorNode sectorNode)
        {
            var neighborNodes = sectorNode.Biome.GetNext(sectorNode);
            var items         = CalcAverageResourceByNeightbors(neighborNodes);

            items = AddNewResourceIfNeed(items);

            var data = new ResourceDepositData(items);

            return(data);
        }