Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

auto-sorting block by type

$
0
0
hi there,

i'm trying to make a system that could discover what is in the grid tu use it afterward (in form of lists)

i'v came with the following

Code:
  void main()
   {   
	//variable declaration
	int i;
	List<IMyTerminalBlock> blocks = new List<IMyTerminalBlock>();
	List<IMyTextPanel> panels = new List<IMyTextPanel>();
	List<IMyReactor> reactors = new List<IMyReactor>();
	List<IMySolarPanel> solPanels = new List<IMySolarPanel>();
	List<IMyBatteryBlock> batteries = new...
auto-sorting block by type

Viewing all articles
Browse latest Browse all 903

Trending Articles