Changes

Jump to navigation Jump to search
Line 86: Line 86:  
The '''EXECUTE''' command will allow you to execute arbitrary [[SIPL]] code (which closely resembles C#) while the game is running. E.g. if you wanted to find the highest paid employee you could write <code>EXECUTE GameSettings.sActorManager.Actors.OrderByDescending(x.employee.Salary).First()</code> or if you wanted to color all selected rooms' exterior green you could write <code>EXECUTE Selected.Where(x is Room).ForEach(x.OutsideColor = Color(0,1,0))</code>.
 
The '''EXECUTE''' command will allow you to execute arbitrary [[SIPL]] code (which closely resembles C#) while the game is running. E.g. if you wanted to find the highest paid employee you could write <code>EXECUTE GameSettings.sActorManager.Actors.OrderByDescending(x.employee.Salary).First()</code> or if you wanted to color all selected rooms' exterior green you could write <code>EXECUTE Selected.Where(x is Room).ForEach(x.OutsideColor = Color(0,1,0))</code>.
   −
Here are some handy variables and functions you can use with EXECUTE:
+
Here are some handy variables and functions you can use with '''EXECUTE''':
 
{|class="wikitable"
 
{|class="wikitable"
 
|GameSettings
 
|GameSettings

Navigation menu