public override void RegisterCallback(string strRecordName, NFIRecord.RecordEventHandler handler) { if (mhtRecord.ContainsKey(strRecordName)) { NFIRecord record = (NFIRecord)mhtRecord[strRecordName]; record.RegisterCallback(handler); } }
public override bool FindRecord(string strRecordName) { NFIRecord record = mRecordManager.GetRecord(strRecordName); if (null != record) { return(true); } return(false); }
public override Int64 QueryRecordInt(string strRecordName, int nRow, int nCol) { NFIRecord record = mRecordManager.GetRecord(strRecordName); if (null != record) { return(record.QueryInt(nRow, nCol)); } return(0); }
public override float QueryRecordFloat(string strRecordName, int nRow, int nCol) { NFIRecord record = mRecordManager.GetRecord(strRecordName); if (null != record) { return(record.QueryFloat(nRow, nCol)); } return(0.0f); }
public override NFIRecord GetRecord(string strPropertyName) { NFIRecord record = null; if (mhtRecord.ContainsKey(strPropertyName)) { record = (NFIRecord)mhtRecord[strPropertyName]; } return(record); }
public override double QueryRecordDouble(string strRecordName, int nRow, int nCol) { NFIRecord record = mRecordManager.GetRecord(strRecordName); if (null != record) { return(record.QueryDouble(nRow, nCol)); } return(0.0); }
public override string QueryRecordString(string strRecordName, int nRow, int nCol) { NFIRecord record = mRecordManager.GetRecord(strRecordName); if (null != record) { return(record.QueryString(nRow, nCol)); } return(""); }
public override NFIDENTID QueryRecordObject(string strRecordName, int nRow, int nCol) { NFIRecord record = mRecordManager.GetRecord(strRecordName); if (null != record) { return(record.QueryObject(nRow, nCol)); } return(null); }
public override bool SetRecordObject(string strRecordName, int nRow, int nCol, NFIDENTID obj) { NFIRecord record = mRecordManager.GetRecord(strRecordName); if (null != record) { record.SetObject(nRow, nCol, obj); return(true); } return(false); }
public override bool SetRecordString(string strRecordName, int nRow, int nCol, string strValue) { NFIRecord record = mRecordManager.GetRecord(strRecordName); if (null != record) { record.SetString(nRow, nCol, strValue); return(true); } return(false); }
void InitRecord(NFIDENTID self, string strClassName) { NFILogicClass xLogicClass = NFCLogicClassManager.Instance.GetElement(strClassName); NFIDataList xDataList = xLogicClass.GetRecordManager().GetRecordList(); for (int i = 0; i < xDataList.Count(); ++i) { string strRecordyName = xDataList.StringVal(i); NFIRecord xRecord = xLogicClass.GetRecordManager().GetRecord(strRecordyName); NFIObject xObject = GetObject(self); NFIRecordManager xRecordManager = xObject.GetRecordManager(); xRecordManager.AddRecord(strRecordyName, xRecord.GetRows(), xRecord.GetColsData()); } }
public override bool Shut() { NFIDataList xRecordList = mRecordManager.GetRecordList(); if (null != xRecordList) { for (int i = 0; i < xRecordList.Count(); ++i) { string strRecordName = xRecordList.StringVal(i); NFIRecord xRecord = mRecordManager.GetRecord(strRecordName); if (null != xRecord) { xRecord.Clear(); } } } mRecordManager = null; mPropertyManager = null; mHeartManager = null; mEventManager = null; return(true); }
public abstract void RegisterCallback(string strRecordName, NFIRecord.RecordEventHandler handler);
///////////////////////////////////////////////////////////////// private void OnBuildRecordEventHandler(NFIDENTID self, string strRecordName, NFIRecord.eRecordOptype eType, int nRow, int nCol, NFIDataList oldVar, NFIDataList newVar) { }
public abstract void RegisterRecordCallback(NFIDENTID self, string strRecordName, NFIRecord.RecordEventHandler handler);
static void OnRecordEventHandler(NFIDENTID self, string strRecordName, NFIRecord.eRecordOptype eType, int nRow, int nCol, NFIDataList oldVar, NFIDataList newVar) { Debug.Log(self); Debug.Log(" "); Debug.Log(strRecordName); Debug.Log(" "); Debug.Log(eType.ToString()); Debug.Log(" "); Debug.Log(nRow); Debug.Log(" "); Debug.Log(nCol); Debug.Log(" "); Debug.Log(oldVar.IntVal(0)); Debug.Log(" "); Debug.Log(newVar.IntVal(0)); Debug.Log(" "); }
public override void RegisterRecordCallback(NFIDENTID self, string strRecordName, NFIRecord.RecordEventHandler handler) { NFIObject xGameObject = GetObject(self); if (null != xGameObject) { xGameObject.GetRecordManager().RegisterCallback(strRecordName, handler); } }
static void OnRecordEventHandler(NFIDENTID self, string strRecordName, NFIRecord.eRecordOptype eType, int nRow, int nCol, NFIDataList oldVar, NFIDataList newVar) { Console.Write(self); Console.Write(" "); Console.Write(strRecordName); Console.Write(" "); Console.Write(eType.ToString()); Console.Write(" "); Console.Write(nRow); Console.Write(" "); Console.Write(nCol); Console.Write(" "); Console.Write(oldVar.IntVal(0)); Console.Write(" "); Console.Write(newVar.IntVal(0)); Console.WriteLine(" "); }