Load() 공개 메소드

public Load ( ConfigNode node ) : void
node System.ConfigNode
리턴 void
예제 #1
0
 public override void OnLoad(ConfigNode gameNode)
 {
     base.OnLoad(gameNode);
     if (Enabled)
     {
         gameSettings = new TacGameSettings();
         gameSettings.Load(gameNode);
         if (HighLogic.LoadedScene == GameScenes.SPACECENTER)
         {
             TACEditorFilter.Instance.Setup();
         }
         for (int i = 0; i < children.Count; ++i)
         {
             if (children[i] is Savable)
             {
                 var child = children[i] as Savable;
                 child.Load(gameNode);
             }
         }
         //this.Log("OnLoad: " + gameNode);
     }
 }
예제 #2
0
 public override void OnLoad(ConfigNode gameNode)
 {
     base.OnLoad(gameNode);
     if (Enabled)
     {
         gameSettings = new TacGameSettings();
         gameSettings.Load(gameNode);
         if (HighLogic.LoadedScene == GameScenes.SPACECENTER)
         {
             TACEditorFilter.Instance.Setup();
         }
         for (int i = 0; i < children.Count; ++i)
         {
             if (children[i] is Savable)
             {
                 var child = children[i] as Savable;
                 child.Load(gameNode);
             }
         }
         //this.Log("OnLoad: " + gameNode);
     }
 }