public static Offset <ReadyMultiplayGameNotify> CreateReadyMultiplayGameNotify(FlatBufferBuilder builder, StringOffset accountIdOffset = default(StringOffset), StringOffset roomIDOffset = default(StringOffset), int latency = 0, long playerHP = 0, VectorOffset avatarHPOffset = default(VectorOffset)) { builder.StartObject(5); ReadyMultiplayGameNotify.AddPlayerHP(builder, playerHP); ReadyMultiplayGameNotify.AddAvatarHP(builder, avatarHPOffset); ReadyMultiplayGameNotify.AddLatency(builder, latency); ReadyMultiplayGameNotify.AddRoomID(builder, roomIDOffset); ReadyMultiplayGameNotify.AddAccountId(builder, accountIdOffset); return(ReadyMultiplayGameNotify.EndReadyMultiplayGameNotify(builder)); }
public static ReadyMultiplayGameNotify GetRootAsReadyMultiplayGameNotify(ByteBuffer _bb, ReadyMultiplayGameNotify obj) { return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }