Beispiel #1
0
 public Core(SharedObjects shared)
 {
     this.shared = shared;
     InitializeSuffixes();
 }
Beispiel #2
0
 public KSPLogger(SharedObjects shared)
     : base(shared)
 {
 }
Beispiel #3
0
 internal void AttachTo(SharedObjects shared)
 {
     _shared        = shared;
     _shared.Window = this;
 }
Beispiel #4
0
 protected Logger(SharedObjects shared)
 {
     Shared = shared;
 }
Beispiel #5
0
 public static void OpenWindow(SharedObjects shared)
 {
     Fetch.Window.AttachTo(shared);
     Fetch.Window.Open();
 }
Beispiel #6
0
 public Logger(SharedObjects shared)
 {
     _shared = shared;
 }
Beispiel #7
0
 public static void OpenWindow(SharedObjects shared)
 {
     Fetch.Window.AttachTo(shared);
     Fetch.Window.Open();
 }
Beispiel #8
0
 public override void Execute(SharedObjects shared)
 {
     shared.Screen.Print ("Function called succesfully!");
 }
Beispiel #9
0
 private void AddNewFlightParam(string name, SharedObjects shared)
 {
     _flightParams.Add(name, new FlightCtrlParam(name, shared));
 }
Beispiel #10
0
 public static void CloseWindow(SharedObjects shared)
 {
     Fetch.Window.AttachTo(shared);
     Fetch.Window.Close();
 }
Beispiel #11
0
 public VolumeManager(SharedObjects shared)
 {
     _volumes       = new Dictionary <int, Volume>();
     _currentVolume = null;
     _shared        = shared;
 }
Beispiel #12
0
 public static void CloseWindow(SharedObjects shared)
 {
     Fetch.Window.AttachTo(shared);
     Fetch.Window.Close();
 }
Beispiel #13
0
 internal static void ToggleWindow(SharedObjects shared)
 {
     Fetch.Window.AttachTo(shared);
     Fetch.Window.Toggle();
 }
Beispiel #14
0
 public Logger(SharedObjects shared)
 {
     _shared = shared;
 }
Beispiel #15
0
 internal static void ToggleWindow(SharedObjects shared)
 {
     Fetch.Window.AttachTo(shared);
     Fetch.Window.Toggle();
 }
Beispiel #16
0
 public Core(kOSProcessor processor, SharedObjects shared):base(processor, shared)
 {
     InitializeSuffixes();
 }
Beispiel #17
0
 public KSPLogger(SharedObjects shared) : base(shared)
 {
 }
Beispiel #18
0
        public Dictionary<string, kOS.Function.FunctionBase> GetFunctionDictionary(SharedObjects share)
        {
            FieldInfo functionsField = typeof(kOS.Function.FunctionManager).GetField("functions", BindingFlags.Instance | BindingFlags.GetField | BindingFlags.NonPublic);
            object manager_functions = functionsField.GetValue(share.FunctionManager);

            return (Dictionary<string, kOS.Function.FunctionBase>)manager_functions;
        }
Beispiel #19
0
        public override void AddTo(SharedObjects shared)
        {
            //manager.AddGetter("HEADING", delegate(CPU cpu) { return cpu.Vessel.vesselName; });

            //manager.AddSetter("VESSELNAME", delegate(CPU cpu, object value) { cpu.Vessel.vesselName = value.ToString(); });
        }