예제 #1
0
 public static Offset <ChangeAvatar> CreateChangeAvatar(FlatBufferBuilder builder,
                                                        StringOffset AccountIDOffset = default(StringOffset),
                                                        int state    = 0,
                                                        int maxHp    = 0,
                                                        int hp       = 0,
                                                        int avatarID = 0)
 {
     builder.StartObject(5);
     ChangeAvatar.AddAvatarID(builder, avatarID);
     ChangeAvatar.AddHp(builder, hp);
     ChangeAvatar.AddMaxHp(builder, maxHp);
     ChangeAvatar.AddState(builder, state);
     ChangeAvatar.AddAccountID(builder, AccountIDOffset);
     return(ChangeAvatar.EndChangeAvatar(builder));
 }
예제 #2
0
 public static ChangeAvatar GetRootAsChangeAvatar(ByteBuffer _bb, ChangeAvatar obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }