示例#1
0
 /// <summary>
 ///     Called when a world is loaded. This happens only when a save file is loaded.
 /// </summary>
 public void OnWorldLoaded()
 {
     Log.Message("[PrepareLanding] OnWorldLoaded");
     WorldLoaded?.Invoke();
     WorldGeneratedOrLoaded?.Invoke();
 }
示例#2
0
 /// <summary>
 /// Handles the world loaded event
 /// </summary>
 /// <param name="e">The event args</param>
 protected virtual void OnWorldLoaded(EventArgs e)
 {
     // TODO: Implement true observer pattern
     WorldLoaded?.Invoke(this, new EventArgs());
     WorldLoaded = null;
 }