예제 #1
0
        public static object GetNaturalResourceCells(object msg)
        {
            var cells  = Singleton <NaturalResourceManager> .instance.m_naturalResources;
            var mapped = new NaturalResourceCellBase[cells.Length];

            for (int i = 0; i < cells.Length; i++)
            {
                mapped[i] = ManagersLogic.ConvertResourceCell(i);

                /*mapped[i].ore = cells[i].m_ore;
                 * mapped[i].oil = cells[i].m_oil;
                 * mapped[i].forest = cells[i].m_forest;
                 * mapped[i].fertility = cells[i].m_fertility;
                 * mapped[i].pollution = cells[i].m_pollution;
                 * mapped[i].water = cells[i].m_water;*/
            }
            return(mapped);
        }
예제 #2
0
 public static object GetNaturalResourceCellSingle(object msg)
 {
     return(ManagersLogic.ConvertResourceCell((int)msg));
 }