コード例 #1
0
ファイル: CommonItem.cs プロジェクト: a99677137/FXCXProject
//LWN_Modify
        public Dictionary <int, object> GetTableData()
        {
            Dictionary <int, object> table = new Dictionary <int, object>();

            for (int i = 0; i < DataLength; i++)
            {
                CommonItemVO value = (CommonItemVO)Data(i);
                int          Id    = System.Convert.ToInt32(value.Id);
                table.Add(Id, value);
            }
            return(table);
        }
コード例 #2
0
ファイル: CommonItemVO.cs プロジェクト: a99677137/FXCXProject
 public static CommonItemVO GetRootAsCommonItemVO(ByteBuffer _bb, CommonItemVO obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }
コード例 #3
0
ファイル: CommonItemVO.cs プロジェクト: a99677137/FXCXProject
 public static Offset <CommonItemVO> CreateCommonItemVO(FlatBufferBuilder builder,
                                                        int Id                  = 0,
                                                        int Class               = 0,
                                                        int Quality             = 0,
                                                        int Type                = 0,
                                                        int Index               = 0,
                                                        StringOffset NameOffset = default(StringOffset),
                                                        int NeedLevel           = 0,
                                                        StringOffset DescOffset = default(StringOffset),
                                                        int SsllPrice           = 0,
                                                        StringOffset IconOffset = default(StringOffset),
                                                        int LayerNum            = 0,
                                                        int ScripID             = 0,
                                                        int IsCost              = 0,
                                                        int VTime               = 0,
                                                        int DropPublic          = 0,
                                                        int PickPublic          = 0,
                                                        int ModuleConfigId      = 0,
                                                        int SkillID             = 0,
                                                        int QuickShow           = 0,
                                                        int PinZhi              = 0,
                                                        int bPenaltyDrop        = 0,
                                                        int bUseInPrison        = 0,
                                                        int ScripParam          = 0,
                                                        int CommodityType       = 0,
                                                        int RareValue           = 0,
                                                        int SellCurrencyType    = 0,
                                                        int ApproachID          = 0,
                                                        int UseNumber           = 0,
                                                        int ItemTrans           = 0)
 {
     builder.StartObject(29);
     CommonItemVO.AddItemTrans(builder, ItemTrans);
     CommonItemVO.AddUseNumber(builder, UseNumber);
     CommonItemVO.AddApproachID(builder, ApproachID);
     CommonItemVO.AddSellCurrencyType(builder, SellCurrencyType);
     CommonItemVO.AddRareValue(builder, RareValue);
     CommonItemVO.AddCommodityType(builder, CommodityType);
     CommonItemVO.AddScripParam(builder, ScripParam);
     CommonItemVO.AddBUseInPrison(builder, bUseInPrison);
     CommonItemVO.AddBPenaltyDrop(builder, bPenaltyDrop);
     CommonItemVO.AddPinZhi(builder, PinZhi);
     CommonItemVO.AddQuickShow(builder, QuickShow);
     CommonItemVO.AddSkillID(builder, SkillID);
     CommonItemVO.AddModuleConfigId(builder, ModuleConfigId);
     CommonItemVO.AddPickPublic(builder, PickPublic);
     CommonItemVO.AddDropPublic(builder, DropPublic);
     CommonItemVO.AddVTime(builder, VTime);
     CommonItemVO.AddIsCost(builder, IsCost);
     CommonItemVO.AddScripID(builder, ScripID);
     CommonItemVO.AddLayerNum(builder, LayerNum);
     CommonItemVO.AddIcon(builder, IconOffset);
     CommonItemVO.AddSsllPrice(builder, SsllPrice);
     CommonItemVO.AddDesc(builder, DescOffset);
     CommonItemVO.AddNeedLevel(builder, NeedLevel);
     CommonItemVO.AddName(builder, NameOffset);
     CommonItemVO.AddIndex(builder, Index);
     CommonItemVO.AddType(builder, Type);
     CommonItemVO.AddQuality(builder, Quality);
     CommonItemVO.AddClass(builder, Class);
     CommonItemVO.AddId(builder, Id);
     return(CommonItemVO.EndCommonItemVO(builder));
 }