Example #1
0
 void GetMexArrays(LuaTable Table, ref MexArray[] Array)
 {
     LuaTable[] Tabs = LuaParser.Read.TableArrayFromTable(Table);
     Array = new MexArray[Tabs.Length];
     for (int i = 0; i < Array.Length; i++)
     {
         Array[i] = new MexArray(LuaParser.Read.StringArrayFromTable(Tabs[i]));
     }
 }
Example #2
0
            public TableKey(string Key, int count)
            {
                this.Key          = Key;
                this.OneDimension = false;
                IsHydro           = Key.ToLower().Contains("hydro");

                Values = new MexArray[count];
                for (int i = 0; i < count; i++)
                {
                    Values[i] = new MexArray(new string[i]);
                }
            }
Example #3
0
            public TableKey(string Key, bool OneDimension)
            {
                this.Key          = Key;
                this.OneDimension = OneDimension;
                IsHydro           = Key.ToLower().Contains("hydro");

                if (OneDimension)
                {
                    Values    = new MexArray[1];
                    Values[0] = new MexArray(new string[0]);
                }
                else
                {
                    Values = new MexArray[0];
                }
            }