User Tools

Site Tools


hpl3:game:guides:scripters_guide

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
hpl3:game:guides:scripters_guide [2014/10/02 10:33]
thomas [Code Structure]
hpl3:game:guides:scripters_guide [2014/11/11 21:01]
thomas [Code Structure]
Line 76: Line 76:
 class cScrMap : iScrMap class cScrMap : iScrMap
 { {
-   //​--------------------------------------------+ //​--------------------------------------------
  
-   //////////////////////////////////////////////////////////////////////////////////////////​ + //////////////////////////////////////////////////////////////////////////////////////////​ 
-   ​// ============== + // ============== 
-   ​// MAIN CALLBACKS + // MAIN CALLBACKS 
-   ​// ============== + // ============== 
-   ​//​{///////////////////////////////////////////////////////////////////////////////////////​+ //​{///////////////////////////////////////////////////////////////////////////////////////​
  
-   //​-------------------------------------------------------+ //​-------------------------------------------------------
  
-   /*OnStart, OnEnter, OnLeave, Update (avoid this), OnAction (debug only), OnPlayerDead,​ etc are here.*/+ /*OnStart, OnEnter, OnLeave, Update (avoid this), OnAction (debug only), OnPlayerDead,​ etc are here.*/
  
-   //​-------------------------------------------------------+ //​-------------------------------------------------------
  
-   //} END MAIN CALLBACKS+ //} END MAIN CALLBACKS
  
-   //////////////////////////////////////////////////////////////////////////////////////////​ + //////////////////////////////////////////////////////////////////////////////////////////​ 
-   ​// ============== + // ============== 
-   ​// MAIN FUNCTIONS + // MAIN FUNCTIONS 
-   ​// ============== + // ============== 
-   ​//​{///////////////////////////////////////////////////////////////////////////////////////​+ //​{///////////////////////////////////////////////////////////////////////////////////////​
  
-   //​-------------------------------------------------------+ //​-------------------------------------------------------
  
-   /*Put any variables that are used in more than one scene here.*/+ /*Put any variables that are used in more than one scene here.*/
  
-   //​-------------------------------------------------------+ //​-------------------------------------------------------
  
-   /*Put any functions that are used in more than one scene here.*/+ /*Put any functions that are used in more than one scene here.*/
  
-   //​-------------------------------------------------------+ //​-------------------------------------------------------
  
-   //} END MAIN FUNCTIONS+ //} END MAIN FUNCTIONS
  
-   //////////////////////////////////////////////////////////////////////////////////////////​ + //////////////////////////////////////////////////////////////////////////////////////////​ 
-   ​// ============== + // ============== 
-   ​// SCENE X *NAME OF SCENE* + // SCENE X *NAME OF SCENE* 
-   ​// ============== + // ============== 
-   ​//​{//////////////////////////////////////////////////////////////////////////////////////​+ //​{//////////////////////////////////////////////////////////////////////////////////////​
  
-   //​-------------------------------------------------------+ /////////////////////////////////////////​ 
 + // Scene X GENERAL 
 + //​{//////////////////////////////////////​ 
 +                 //​-------------------------------------------------------
  
-   /*Put any variables that are used by many events in Scene X here.*/+ /*Put any variables that are used by many events in Scene X here.*/
  
-   //​-------------------------------------------------------+ //​-------------------------------------------------------
  
-   /*Put any functions that are used in more than one event in Scene X here.*/+ /*Put any functions that are used in more than one event in Scene X here.*/
  
-    ​//​-------------------------------------------------------+  //​------------------------------------------------------- 
 +                 //} END Scene X General
  
-    ​/////////////////////////////////////////​ +  /////////////////////////////////////////​ 
-    // Scene X Event X *Name Of Event* +  // Event X *Name Of Event* 
-    //​{//////////////////////////////////////​+  //​{//////////////////////////////////////​
  
-    ​//​-------------------------------------------------------+  //​-------------------------------------------------------
  
-    ​/*Put any variables that are only used in Scene X, Event X here.*/+  /*Put any variables that are only used in Scene X, Event X here.*/
  
-    ​//​-------------------------------------------------------+  //​-------------------------------------------------------
  
-    ​/*Put any functionsthat are only used in Scene X, Event X here.*/+  /*Put any functionsthat are only used in Scene X, Event X here.*/
  
-    ​//​-------------------------------------------------------+  //​-------------------------------------------------------
  
-    ​//} END Scene X Event X+  //} END Event X
  
-    ​//} END SCENE X+  //} END SCENE X
  
-    ​/////////////////////////////////////////​ +  /////////////////////////////////////////​ 
-    // ============== +  // ============== 
-    // TERMINALS +  // TERMINALS 
-    // ============== +  // ============== 
-    /////////////////////////////////////////​+  //{//////////////////////////////////////​
  
-    ​//​-------------------------------------------------------+  //​-------------------------------------------------------
  
-    ​/////////////////////////////////////////​ +  /////////////////////////////////////////​ 
-    // Terminal *Name Of Terminal* +  // Terminal *Name Of Terminal* 
-    //​{//////////////////////////////////////​+  //​{//////////////////////////////////////​
  
-    ​//​-------------------------------------------------------+  //​-------------------------------------------------------
  
-    ​/*Put any variables that are only used Terminal here.*/+  /*Put any variables that are only used Terminal here.*/
  
-    ​//​-------------------------------------------------------+  //​-------------------------------------------------------
  
-    ​/*Put any functions that are only used Terminal here.*/+  /*Put any functions that are only used Terminal here.*/
  
-    ​//​-------------------------------------------------------+  //​-------------------------------------------------------
  
-    ​//} END Terminal *Name Of Terminal*+  //} END Terminal *Name Of Terminal* 
 + 
 + //} END TERMINALS
  
 } }
hpl3/game/guides/scripters_guide.txt · Last modified: 2015/09/25 11:10 by jens