Exemple #1
0
 public void update_storeable_resource_UI(Storeable s)
 {
     // Trigger resource property UI updates by setting values to themselves.
     foreach (string resource in s.resources.Keys)
     {
         update_stat_text(s.ID, resource, s.get_res(resource), s.get_sum_storeable_resources(), s.capacity);
     }
 }
Exemple #2
0
 public SStoreableResources(Storeable s)
 {
     light         = s.get_res(Storeable.LIGHT);
     unity         = s.get_res(Storeable.UNITY);
     star_crystals = s.get_res(Storeable.STAR_CRYSTALS);
     minerals      = s.get_res(Storeable.MINERALS);
     arelics       = s.get_res(Storeable.ARELICS);
     erelics       = s.get_res(Storeable.ERELICS);
     mrelics       = s.get_res(Storeable.MRELICS);
 }