コード例 #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
ファイル: NFCObject.cs プロジェクト: zmyer/NoahGameFrame
        public override bool FindRecord(string strRecordName)
        {
            NFIRecord record = mRecordManager.GetRecord(strRecordName);

            if (null != record)
            {
                return(true);
            }
            return(false);
        }
コード例 #4
0
ファイル: NFCObject.cs プロジェクト: zmyer/NoahGameFrame
        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
ファイル: NFCObject.cs プロジェクト: zmyer/NoahGameFrame
        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
ファイル: NFCObject.cs プロジェクト: zmyer/NoahGameFrame
        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
ファイル: NFCObject.cs プロジェクト: zmyer/NoahGameFrame
        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
ファイル: NFCObject.cs プロジェクト: zmyer/NoahGameFrame
        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
ファイル: NFCObject.cs プロジェクト: zmyer/NoahGameFrame
        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
ファイル: NFCObject.cs プロジェクト: zmyer/NoahGameFrame
        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
ファイル: NFCKernel.cs プロジェクト: zmyer/NoahGameFrame
        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
ファイル: NFCObject.cs プロジェクト: zmyer/NoahGameFrame
        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
ファイル: NFIKernel.cs プロジェクト: cbbbc/NoahGameFrame
 public abstract void RegisterRecordCallback(NFIDENTID self, string strRecordName, NFIRecord.RecordEventHandler handler);
コード例 #17
0
ファイル: MainExU3D.cs プロジェクト: joyfish/NoahGameFrame
 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
ファイル: NFCKernel.cs プロジェクト: joyfish/NoahGameFrame
 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
ファイル: MainEx.cs プロジェクト: joyfish/NoahGameFrame
 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(" ");
 }