Example #1
0
 /// <summary>
 /// Called once the map is generated.
 /// </summary>
 /// <remarks>
 /// This fixes an issue where
 /// all those extensions that
 /// require calling the central
 /// property of the Map class in
 /// the API were corrupted due to
 /// a missed call, such as before
 /// getting the elevator type.
 /// </remarks>
 public static void OnMapGenerated()
 {
     API.Features.Map.ClearCache();
     GenerateCache();
     LiftTypeExtension.RegisterElevatorTypesOnLevelLoad();
     CameraExtensions.RegisterCameraInfoOnLevelLoad();
     DoorExtensions.RegisterDoorTypesOnLevelLoad();
 }
Example #2
0
 /// <summary>
 /// Called once the map is generated.
 /// </summary>
 /// <remarks>
 /// This fixes an issue where
 /// all those extensions that
 /// require calling the central
 /// property of the Map class in
 /// the API were corrupted due to
 /// a missed call, such as before
 /// getting the elevator type.
 /// </remarks>
 public static void OnMapGenerated()
 {
     LiftTypeExtension.RegisterElevatorTypesOnLevelLoad();
     CameraExtensions.RegisterCameraInfoOnLevelLoad();
     DoorExtensions.RegisterDoorTypesOnLevelLoad();
 }