op2_sdk:dayandnight

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revisionBoth sides next revision
op2_sdk:dayandnight [2016/01/25 21:05] vagabondop2_sdk:dayandnight [2016/01/25 23:31] vagabond
Line 13: Line 13:
 If you wish to indicate little time is passing during the scenario, consider setting to Day only or prevent Day/Night from cycling over time. If you wish to indicate little time is passing during the scenario, consider setting to Day only or prevent Day/Night from cycling over time.
  
-**Useful Functions**+===== Useful Functions ===== 
 + 
 +TethysGame
 <code cpp> <code cpp>
-From TethysGame 
 static void __fastcall SetDaylightEverywhere(int bOn); static void __fastcall SetDaylightEverywhere(int bOn);
 static void __fastcall SetDaylightMoves(int bOn); static void __fastcall SetDaylightMoves(int bOn);
 +</code>
  
-From GameMap+GameMap 
 +<code cpp>
 static void __fastcall SetInitialLightLevel(int lightPosition); static void __fastcall SetInitialLightLevel(int lightPosition);
 </code> </code>
Line 38: Line 41:
 ===== Sample Code ===== ===== Sample Code =====
  
 +For a multiplayer scenario, setting day/night based on user input.
 <code cpp> <code cpp>
 int InitProc() int InitProc()
 { {
-    // For a multiplayer scenario, set day/night based on user input. 
     TethysGame::SetDaylightEverywhere(0);     TethysGame::SetDaylightEverywhere(0);
     TethysGame::SetDaylightMoves(1);     TethysGame::SetDaylightMoves(1);
Line 53: Line 56:
  
 ----  ---- 
 + - //Go Back to [[op2_sdk:programming_scenario_dlls|Programming a Scenario]]//\\
  - //Go Back to [[op2_sdk:software_development_kit_sdk|Outpost 2 Mapmaking]]//\\  - //Go Back to [[op2_sdk:software_development_kit_sdk|Outpost 2 Mapmaking]]//\\
  - //Go Back to [[outpost_2:outpost_2|Outpost 2 Main page]]//\\  - //Go Back to [[outpost_2:outpost_2|Outpost 2 Main page]]//\\
  - //Go Back to [[http://wiki.outpostuniverse.org/doku.php?id=start|Wiki Home Page]]//  - //Go Back to [[http://wiki.outpostuniverse.org/doku.php?id=start|Wiki Home Page]]//
  • op2_sdk/dayandnight.txt
  • Last modified: 2016/10/12 21:32
  • by 127.0.0.1