Exemplo n.º 1
0
 public static Offset <BossSimpleData> CreateBossSimpleData(FlatBufferBuilder builder,
                                                            StringOffset accountIdOffset = default(StringOffset),
                                                            StringOffset roomIDOffset    = default(StringOffset),
                                                            int bossState = 0,
                                                            Offset <teamboss_msg.Vector> bossPositionOffset  = default(Offset <teamboss_msg.Vector>),
                                                            Offset <teamboss_msg.Vector> bossDirectionOffset = default(Offset <teamboss_msg.Vector>),
                                                            float bossCurSpeed       = 0.0f,
                                                            long bossNotifyTimeStamp = 0,
                                                            int anim = 0)
 {
     builder.StartObject(8);
     BossSimpleData.AddBossNotifyTimeStamp(builder, bossNotifyTimeStamp);
     BossSimpleData.AddAnim(builder, anim);
     BossSimpleData.AddBossCurSpeed(builder, bossCurSpeed);
     BossSimpleData.AddBossDirection(builder, bossDirectionOffset);
     BossSimpleData.AddBossPosition(builder, bossPositionOffset);
     BossSimpleData.AddBossState(builder, bossState);
     BossSimpleData.AddRoomID(builder, roomIDOffset);
     BossSimpleData.AddAccountId(builder, accountIdOffset);
     return(BossSimpleData.EndBossSimpleData(builder));
 }
Exemplo n.º 2
0
 public static BossSimpleData GetRootAsBossSimpleData(ByteBuffer _bb, BossSimpleData obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }