Papa_Rimskiy

Different colors of cars in the store

1 post in this topic

Добрый день.
Ребята, скажите, кто знает, как правильно писать скрипт-машину в магазине, если она в моде имеет несколько цветов.
Машины подобны этому

"R35lu_civ";
"R35lu_civ_rouge";
"R35lu_civ_bleu";
"R35lu_civ_noir";
"R35lu_civ_gris";
"R35lu_civ_yellow";

Было бы правильно, если бы я сделал это таким образом?

class R35lu_civ {
		vItemSpace = 50;
		conditions = "";
		price = 75000;
		textures[] = {};
		materials[] = {"rouge","bleu","noir","gris","yellow"};
	};

и все же, пожалуйста, объясните, почему здесь наследственность? "class ext_ivory_isf_police: ext_ivory_rs4_police {price = 25000;};

class ext_ivory_rs4_police {
		vItemSpace = 50;
		conditions = "";
		price = 25000;
		textures[] = {};
		materials[] = {"glossy","matte","metallic","chrome"};
	};
	class ext_ivory_isf_police: ext_ivory_rs4_police {
		price = 25000;
	};
	class ext_ivory_m3_police: ext_ivory_rs4_police {
		price = 25000;
	};
Edited by Papa_Rimskiy

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.