Exemplo n.º 1
0
 public static Offset <EmotionVO> CreateEmotionVO(FlatBufferBuilder builder,
                                                  int Id = 0,
                                                  StringOffset AtlasPathOffset   = default(StringOffset),
                                                  StringOffset SpriteNameOffset  = default(StringOffset),
                                                  StringOffset ExpressNameOffset = default(StringOffset),
                                                  StringOffset ShowOffset        = default(StringOffset),
                                                  int sptMaxNum    = 0,
                                                  int ExpressType  = 0,
                                                  int Unlock       = 0,
                                                  int Long         = 0,
                                                  int Wide         = 0,
                                                  int IsBigEmotion = 0,
                                                  int Fps          = 0)
 {
     builder.StartObject(12);
     EmotionVO.AddFps(builder, Fps);
     EmotionVO.AddIsBigEmotion(builder, IsBigEmotion);
     EmotionVO.AddWide(builder, Wide);
     EmotionVO.AddLong(builder, Long);
     EmotionVO.AddUnlock(builder, Unlock);
     EmotionVO.AddExpressType(builder, ExpressType);
     EmotionVO.AddSptMaxNum(builder, sptMaxNum);
     EmotionVO.AddShow(builder, ShowOffset);
     EmotionVO.AddExpressName(builder, ExpressNameOffset);
     EmotionVO.AddSpriteName(builder, SpriteNameOffset);
     EmotionVO.AddAtlasPath(builder, AtlasPathOffset);
     EmotionVO.AddId(builder, Id);
     return(EmotionVO.EndEmotionVO(builder));
 }
Exemplo n.º 2
0
//LWN_Modify
        public Dictionary <int, object> GetTableData()
        {
            Dictionary <int, object> table = new Dictionary <int, object>();

            for (int i = 0; i < DataLength; i++)
            {
                EmotionVO value = (EmotionVO)Data(i);
                int       Id    = System.Convert.ToInt32(value.Id);
                table.Add(Id, value);
            }
            return(table);
        }
Exemplo n.º 3
0
 public static EmotionVO GetRootAsEmotionVO(ByteBuffer _bb, EmotionVO obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }