public static KEngineInfo Wrap(TableRow row) { if (_instance == null) { _instance = new KEngineInfo(); } _instance._row = row; return(_instance); }
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); }
public static KEngineInfo Wrap(TableRow row) { if (_instance == null) _instance = new KEngineInfo(); _instance._row = row; return _instance; }