コード例 #1
0
 static public int get_id(IntPtr l)
 {
     try {
         TableConfig.StoryDlg self = (TableConfig.StoryDlg)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.id);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #2
0
 static public int constructor(IntPtr l)
 {
     try {
         TableConfig.StoryDlg o;
         o = new TableConfig.StoryDlg();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #3
0
 static public int GetId(IntPtr l)
 {
     try {
         TableConfig.StoryDlg self = (TableConfig.StoryDlg)checkSelf(l);
         var ret = self.GetId();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #4
0
 static public int set_id(IntPtr l)
 {
     try {
         TableConfig.StoryDlg self = (TableConfig.StoryDlg)checkSelf(l);
         System.Int32         v;
         checkType(l, 2, out v);
         self.id = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #5
0
 static public int WriteToBinary(IntPtr l)
 {
     try {
         TableConfig.StoryDlg      self = (TableConfig.StoryDlg)checkSelf(l);
         GameFramework.BinaryTable a1;
         checkType(l, 2, out a1);
         self.WriteToBinary(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #6
0
 static public int ReadFromBinary(IntPtr l)
 {
     try {
         TableConfig.StoryDlg      self = (TableConfig.StoryDlg)checkSelf(l);
         GameFramework.BinaryTable a1;
         checkType(l, 2, out a1);
         System.Int32 a2;
         checkType(l, 3, out a2);
         var ret = self.ReadFromBinary(a1, a2);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #7
0
 private void TryUpdateValue(StoryInstance instance)
 {
     if (m_DlgId.HaveValue && m_Index.HaveValue)
     {
         m_HaveValue = true;
         int dlgId                = m_DlgId.Value;
         int index                = m_Index.Value;
         int dlgItemId            = TableConfigUtility.GenStoryDlgItemId(dlgId, index);
         TableConfig.StoryDlg cfg = TableConfig.StoryDlgProvider.Instance.GetStoryDlg(dlgItemId);
         if (null != cfg)
         {
             m_Value = cfg;
         }
         else
         {
             m_Value = null;
         }
     }
 }
コード例 #8
0
        private void TryUpdateValue(StoryInstance instance)
        {
            Scene scene = instance.Context as Scene;

            if (null != scene)
            {
                if (m_DlgId.HaveValue && m_Index.HaveValue)
                {
                    m_HaveValue = true;
                    int dlgId                = m_DlgId.Value;
                    int index                = m_Index.Value;
                    int dlgItemId            = TableConfigUtility.GenStoryDlgItemId(dlgId, index);
                    TableConfig.StoryDlg cfg = TableConfig.StoryDlgProvider.Instance.GetStoryDlg(dlgItemId);
                    if (null != cfg)
                    {
                        m_Value = BoxedValue.From(cfg);
                    }
                    else
                    {
                        m_Value = BoxedValue.NullObject;
                    }
                }
            }
        }