Engine Config, Wrapper of the TableRow
Exemplo n.º 1
0
        public static KEngineInfo Wrap(TableRow row)
        {
            if (_instance == null)
            {
                _instance = new KEngineInfo();
            }

            _instance._row = row;
            return(_instance);
        }
Exemplo n.º 2
0
        public static void SetConfig(string key, string value)
        {
            EnsureConfigTab();
            if (!Application.isEditor)
            {
                Logger.LogError("Set Config is Editor only");
                return;
            }

            var item    = ConfigsTable.FindByPrimaryKey(key);
            var writer  = new TabFileWriter(ConfigsTable);
            var row     = writer.GetRow(item.RowNumber);
            var rowInfo = KEngineInfo.Wrap(row);

            rowInfo.Value = value;

            writer.Save(ConfigFilePath);
        }
Exemplo n.º 3
0
        public static KEngineInfo Wrap(TableRow row)
        {
            if (_instance == null)
                _instance = new KEngineInfo();

            _instance._row = row;
            return _instance;
        }