示例#1
0
 public override void RegisterCallback(string strRecordName, NFIRecord.RecordEventHandler handler)
 {
     if (mhtRecord.ContainsKey(strRecordName))
     {
         NFIRecord record = (NFIRecord)mhtRecord[strRecordName];
         record.RegisterCallback(handler);
     }
 }
示例#2
0
 public override void RegisterCallback(string strRecordName, NFIRecord.RecordEventHandler handler)
 {
     if (mhtRecord.ContainsKey(strRecordName))
     {
         NFIRecord record = (NFIRecord)mhtRecord[strRecordName];
         record.RegisterCallback(handler);
     }
 }
示例#3
0
        public override bool FindRecord(string strRecordName)
        {
            NFIRecord record = mRecordManager.GetRecord(strRecordName);

            if (null != record)
            {
                return(true);
            }
            return(false);
        }
示例#4
0
        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);
        }
示例#5
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);
        }
示例#6
0
        public override NFIRecord GetRecord(string strPropertyName)
        {
            NFIRecord record = null;

            if (mhtRecord.ContainsKey(strPropertyName))
            {
                record = (NFIRecord)mhtRecord[strPropertyName];
            }

            return(record);
        }
示例#7
0
        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);
        }
示例#8
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("");
        }
示例#9
0
        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);
        }
示例#10
0
        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);
        }
示例#11
0
        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);
        }
示例#12
0
        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());
            }
        }
示例#13
0
        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);
        }
示例#14
0
 public abstract void RegisterCallback(string strRecordName, NFIRecord.RecordEventHandler handler);
示例#15
0
 /////////////////////////////////////////////////////////////////
 private void OnBuildRecordEventHandler(NFIDENTID self, string strRecordName, NFIRecord.eRecordOptype eType, int nRow, int nCol, NFIDataList oldVar, NFIDataList newVar)
 {
 }
示例#16
0
 public abstract void RegisterRecordCallback(NFIDENTID self, string strRecordName, NFIRecord.RecordEventHandler handler);
示例#17
0
 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(" ");
 }
示例#18
0
 public override void RegisterRecordCallback(NFIDENTID self, string strRecordName, NFIRecord.RecordEventHandler handler)
 {
     NFIObject xGameObject = GetObject(self);
     if (null != xGameObject)
     {
         xGameObject.GetRecordManager().RegisterCallback(strRecordName, handler);
     }
 }
示例#19
0
 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(" ");
 }