Fandom

武装突袭 Wiki

Array+=

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 Share

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

Bis introduced the array[]+={} syntax for arma3 as an attempt to add unique weapons (or magazines) to a unit without the tedium of duplicate-typing all the basic items.

It originally had a text ONLY interpreter making it quite impossible to generate config.bin's versus config.cpp's. Later, bis binarise was modified to create new token code for this syntax. This token code is broken as it bears no relationship to any other tokenised output. It 'works' simply because it's data format can be ignored.

It is not present in any form in any of the official addons accompanying arma3.

As a command it is almost totally useless. Since nested hierarchy isn't permitted, it's pointless.


usage:

class A
{
  array[]={any,thing};
};
class B:A
{
  array+={more,Bstuff];
}
class C:A 
{
  array+={other, Cstuff};
};

ONLY direct inheritance works of an array explicitly stated in the inherited class as being array[]={some,thing}. The following WILL NOT WORK


class A {array[]={any,thing};}
class B:A{};
class C:B
{
 array[]+={wont,work}; // result: array[]={wont,work};
}

class A {array[]={any,thing};}
class B:A{array[]+={more,stuff};};
class C:B
{
 array[]+={wont,work}; // result: array[]={wont,work};
}

更多维基

随机维基