Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (IsRsx(typeId))
- {
- if(gc()->GetGameLib().GetBuildingType(typeId).buildingClass == "turret")
- {
- return TowerView::create(building); // "Stand_1_1", "Attack_1_1" etc.
- }
- else if (gc()->GetGameLib().GetBuildingType(typeId).buildingClass == "warehouse" or gc()->GetGameLib().GetBuildingType(typeId).buildingClass == "farm")
- {
- return StorageView::create(building);
- }
- else if (gc()->GetGameLib().GetBuildingType(typeId).buildingClass == "decor")
- {
- return DecorView::create(building); // "Stand" animation only
- }
- else
- {
- return RSXBuildingView::create(building); // "Stand_1_1", "Stand_2_1" etc.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement