Code: Select all
class test : inventory
{
enum MyEnum
{
MY_First,
MY_Second
}
default {+inventory.invbar;inventory.icon "UNKNA0";}
states {spawn:UNKN A -1;stop;}
override bool use(bool pickup)
{
console.printf("first: "..MY_First);
console.printf("second: "..MY_Second);
return false;
}
}
class test1 : test
{
enum MyEnum
{
MY_Third,
MY_Fourth
}
override bool use(bool pickup)
{
super.use(pickup);
console.printf("third: "..MY_Third);
console.printf("fourth: "..MY_Fourth);
return false;
}
}