Exemple #1
0
 public static Offset <BossSimpleData> CreateBossSimpleData(FlatBufferBuilder builder,
                                                            StringOffset accountIdOffset = default(StringOffset),
                                                            StringOffset roomIDOffset    = default(StringOffset),
                                                            int bossState = 0,
                                                            Offset <multiplayMsg.Vector> bossPositionOffset  = default(Offset <multiplayMsg.Vector>),
                                                            Offset <multiplayMsg.Vector> bossDirectionOffset = default(Offset <multiplayMsg.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));
 }
Exemple #2
0
 public static BossSimpleData GetRootAsBossSimpleData(ByteBuffer _bb, BossSimpleData obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }