Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. else if (IsRsx(typeId))
  2. {
  3. if(gc()->GetGameLib().GetBuildingType(typeId).buildingClass == "turret")
  4. {
  5. return TowerView::create(building); // "Stand_1_1", "Attack_1_1" etc.
  6. }
  7. else if (gc()->GetGameLib().GetBuildingType(typeId).buildingClass == "warehouse" or gc()->GetGameLib().GetBuildingType(typeId).buildingClass == "farm")
  8. {
  9. return StorageView::create(building);
  10. }
  11. else if (gc()->GetGameLib().GetBuildingType(typeId).buildingClass == "decor")
  12. {
  13. return DecorView::create(building); // "Stand" animation only
  14. }
  15. else
  16. {
  17. return RSXBuildingView::create(building); // "Stand_1_1", "Stand_2_1" etc.
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement