コード例 #1
0
 public static Offset <Eat_Item> CreateEat_Item(FlatBufferBuilder builder,
                                                int itemID   = 0,
                                                int playerID = 0)
 {
     builder.StartObject(2);
     Eat_Item.AddPlayerID(builder, playerID);
     Eat_Item.AddItemID(builder, itemID);
     return(Eat_Item.EndEat_Item(builder));
 }
コード例 #2
0
 public static Eat_Item GetRootAsEat_Item(ByteBuffer _bb, Eat_Item obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }