public static Offset <Request_CreateHero> CreateRequest_CreateHero(FlatBufferBuilder builder, StringOffset nameOffset = default(StringOffset), ProtocolCS.ClassType class_type = ProtocolCS.ClassType.NONE) { builder.StartObject(2); Request_CreateHero.AddClassType(builder, class_type); Request_CreateHero.AddName(builder, nameOffset); return(Request_CreateHero.EndRequest_CreateHero(builder)); }
public static Request_CreateHero GetRootAsRequest_CreateHero(ByteBuffer _bb, Request_CreateHero obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }