示例#1
0
 public static Offset <PlayerSimpleData> CreatePlayerSimpleData(FlatBufferBuilder builder,
                                                                StringOffset accountIdOffset = default(StringOffset),
                                                                StringOffset roomIDOffset    = default(StringOffset),
                                                                int state = 0,
                                                                Offset <teamboss_msg.Vector> positionOffset  = default(Offset <teamboss_msg.Vector>),
                                                                Offset <teamboss_msg.Vector> directionOffset = default(Offset <teamboss_msg.Vector>),
                                                                float curSpeed       = 0.0f,
                                                                long notifyTimeStamp = 0,
                                                                int anim             = 0)
 {
     builder.StartObject(8);
     PlayerSimpleData.AddNotifyTimeStamp(builder, notifyTimeStamp);
     PlayerSimpleData.AddAnim(builder, anim);
     PlayerSimpleData.AddCurSpeed(builder, curSpeed);
     PlayerSimpleData.AddDirection(builder, directionOffset);
     PlayerSimpleData.AddPosition(builder, positionOffset);
     PlayerSimpleData.AddState(builder, state);
     PlayerSimpleData.AddRoomID(builder, roomIDOffset);
     PlayerSimpleData.AddAccountId(builder, accountIdOffset);
     return(PlayerSimpleData.EndPlayerSimpleData(builder));
 }
示例#2
0
 public static PlayerSimpleData GetRootAsPlayerSimpleData(ByteBuffer _bb, PlayerSimpleData obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }