Beispiel #1
0
        public override MyObjectBuilder_SessionComponent GetObjectBuilder()
        {
            MyObjectBuilder_ScriptManager ob = (MyObjectBuilder_ScriptManager)base.GetObjectBuilder();

            ob.variables.Dictionary = MyAPIUtilities.Static.Variables;
            return(ob);
        }
Beispiel #2
0
        public MyObjectBuilder_ScriptManager GetObjectBuilder()
        {
            MyObjectBuilder_ScriptManager ob = new MyObjectBuilder_ScriptManager {
                variables = { Dictionary = MyAPIUtilities.Static.Variables }
            };

            return(ob);
        }
Beispiel #3
0
        //variables for scripts:
        public void Init(MyObjectBuilder_ScriptManager scriptBuilder)
        {
            if (scriptBuilder != null)
            {
                MyAPIUtilities.Static.Variables = scriptBuilder.variables.Dictionary;
            }

            LoadData();
        }
 public MyObjectBuilder_ScriptManager GetObjectBuilder()
 {
     MyObjectBuilder_ScriptManager ob = new MyObjectBuilder_ScriptManager { variables = { Dictionary = MyAPIUtilities.Static.Variables } };
     return ob;
 }
        //variables for scripts:
        public void Init(MyObjectBuilder_ScriptManager scriptBuilder)
        {
            if (scriptBuilder != null)
                MyAPIUtilities.Static.Variables = scriptBuilder.variables.Dictionary;

            LoadData();
        }