Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "interfaces/Map_Interface.hps"
- #include "base/Inputhandler_Types.hps"
- #include "helpers/helper_map.hps"
- #include "helpers/helper_props.hps"
- #include "helpers/helper_effects.hps"
- #include "helpers/helper_audio.hps"
- #include "helpers/helper_imgui.hps"
- #include "helpers/helper_sequences.hps"
- #include "helpers/helper_game.hps"
- #include "helpers/helper_modules.hps"
- #include "helpers/helper_ai.hps"
- #include "helpers/helper_player.hps"
- #include "helper_imgui_station.hps"
- //--------------------------------------------------
- /*Place any global values here. These must be const variables as they will not be saved*/
- /*This is also the place for enums and classes, but these should be avoided whenever possible*/
- //--------------------------------------------------
- class cScrMap : iScrMap
- {
- //--------------------------------------------
- //////////////////////////////////////////////////////////////////////////////////////////
- // ==============
- // MAIN CALLBACKS
- // ==============
- //{///////////////////////////////////////////////////////////////////////////////////////
- //-------------------------------------------------------
- ////////////////////////////
- // Set up map environment
- void Setup()
- {
- }
- //-------------------------------------------------------
- ////////////////////////////
- // Run first time starting map
- void OnStart()
- {
- Player_SetClothing("default");
- Player_SetFootWear("default");
- LockBedroomDoor();
- /*Map_AddTimer("UnlockDoorTimer",
- 2.0f,
- "UnlockBedroomDoor");*/
- }
- //-------------------------------------------------------
- ////////////////////////////
- // Run when entering map
- void OnEnter()
- {
- }
- //-------------------------------------------------------
- ////////////////////////////
- // Run when leaving map
- void OnLeave()
- {
- }
- //-------------------------------------------------------
- ////////////////////////////
- // The player has died.
- void OnPlayerKilled(int alRecentDeaths, const tString&in asSource)
- {
- }
- //-------------------------------------------------------
- ////////////////////////////
- // To get when player makes input (mostly used for debug)
- void OnAction(int alAction, bool abPressed)
- {
- if(abPressed==false) return;
- if(alAction == eAction_Test1)
- {
- }
- }
- //-------------------------------------------------------
- ////////////////////////////
- // This only used for pure debug purposes when info needs to printed.
- float DrawDebugOutput(cGuiSet @apSet,iFontData @apFont,float afY)
- {
- //afY = cLux_DrawDebugText("My Debug value:"+..., afY);
- return afY;
- }
- //-------------------------------------------------------
- //} END MAIN CALLBACKS
- //////////////////////////////////////////////////////////////////////////////////////////
- // ==============
- // MAIN FUNCTIONS
- // ==============
- //{///////////////////////////////////////////////////////////////////////////////////////
- //-------------------------------------------------------
- /*Put any variables that are used in more than one scene here.*/
- //-------------------------------------------------------
- /*Put any functions that are used in more than one scene here.*/
- //-------------------------------------------------------
- //} END MAIN FUNCTIONS
- //////////////////////////////////////////////////////////////////////////////////////////
- // ==============
- // SCENE 1: "Intro: Bedroom Wakeup Call"
- // ==============
- //{//////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////
- // General
- //{//////////////////////////////////////
- //-------------------------------------------------------
- /*Put any variables that are used by many events in Scene 1 here.*/
- //-------------------------------------------------------
- /*Put any functions that are used in more than one event in Scene 1 here.*/
- ////////////////////////////
- // Locks the starting bedroom buttons.
- void LockBedroomDoor()
- {
- Button_SetLocked("home_door_panel_1",
- true,
- false);
- Button_SetLocked("home_door_panel_2",
- true,
- false);
- }
- //-------------------------------------------------------
- /////////////////////////////
- // Unlocks the starting bedroom door + buttons.
- void UnlockBedroomDoor()
- {
- Button_SetLocked("home_door_panel_1",
- false,
- true);
- Button_SetLocked("home_door_panel_2",
- false,
- true);
- }
- //-------------------------------------------------------
- // Unlocks the starting bedroom door + buttons.
- // This function is timer ready.
- void UnlockBedroomDoor(const tString &in)
- {
- Button_SetLocked("home_door_panel_1",
- false,
- true);
- Button_SetLocked("home_door_panel_2",
- false,
- true);
- }
- //-------------------------------------------------------
- //} END General
- /////////////////////////////////////////
- // Event *Name Of Event*
- //{//////////////////////////////////////
- //-------------------------------------------------------
- /*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.*/
- //-------------------------------------------------------
- //} END Event *Name Of Event*
- //} END SCENE 1: "Intro: Bedroom Wakeup Call"
- /////////////////////////////////////////
- // ==============
- // TERMINALS
- // ==============
- //{//////////////////////////////////////
- //-------------------------------------------------------
- /////////////////////////////////////////
- // Terminal "Bedroom Terminal"
- //{//////////////////////////////////////
- //-------------------------------------------------------
- /*Put any variables that are only used Terminal here.*/
- //-------------------------------------------------------
- /*Put any functions that are only used Terminal here.*/
- //-------------------------------------------------------
- //} END Terminal "Bedroom Terminal"
- //} END TERMINALS
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement