Commit dfd8ac67 authored by Corentin Bocquillon's avatar Corentin Bocquillon
Browse files

Test de jenkins et docker.

parent d660c9f1
FROM archlinux/base
RUN pacman --noconfirm -S libxml2 protobuf guile jsoncpp libnoise sfml meson
pipeline
{
agent
{
dockerfile
{
filename 'Dockerfile.build'
}
}
stages
{
stage ('Build')
{
sh './generate_protobuf.sh'
sh 'meson build'
sh 'cd build'
sh 'ninja'
}
}
}
......@@ -17,7 +17,7 @@ sources = ['src/main.cpp', 'src/items.cpp', 'src/config.cpp',
libxml2 = dependency('libxml-2.0')
protobuf = dependency('protobuf')
guile = dependency('guile-2.0')
guile = dependency('guile-2.2')
json = dependency('jsoncpp')
noise = compilateur.find_library('noise')
if compilateur.has_header('libnoise/noise.h')
......
This diff is collapsed.
......@@ -4,21 +4,22 @@
#ifndef PROTOBUF_INCLUDED_src_2fplayer_2ddata_2eproto
#define PROTOBUF_INCLUDED_src_2fplayer_2ddata_2eproto
#include <limits>
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3006001
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3007000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
......@@ -31,20 +32,22 @@
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
#define PROTOBUF_INTERNAL_EXPORT_protobuf_src_2fplayer_2ddata_2eproto
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_src_2fplayer_2ddata_2eproto
namespace protobuf_src_2fplayer_2ddata_2eproto {
// Internal implementation detail -- do not use these members.
struct TableStruct {
static const ::google::protobuf::internal::ParseTableField entries[];
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
static const ::google::protobuf::internal::ParseTable schema[1];
struct TableStruct_src_2fplayer_2ddata_2eproto {
static const ::google::protobuf::internal::ParseTableField entries[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::google::protobuf::internal::ParseTable schema[1]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
static const ::google::protobuf::internal::SerializationTable serialization_table[];
static const ::google::protobuf::uint32 offsets[];
};
void AddDescriptors();
} // namespace protobuf_src_2fplayer_2ddata_2eproto
void AddDescriptors_src_2fplayer_2ddata_2eproto();
class player_data;
class player_dataDefaultTypeInternal;
extern player_dataDefaultTypeInternal _player_data_default_instance_;
......@@ -56,7 +59,8 @@ template<> ::player_data* Arena::CreateMaybeMessage<::player_data>(Arena*);
// ===================================================================
class player_data : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:player_data) */ {
class player_data final :
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:player_data) */ {
public:
player_data();
virtual ~player_data();
......@@ -89,7 +93,9 @@ class player_data : public ::google::protobuf::Message /* @@protoc_insertion_poi
return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const ::google::protobuf::Descriptor* descriptor() {
return default_instance().GetDescriptor();
}
static const player_data& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
......@@ -108,7 +114,7 @@ class player_data : public ::google::protobuf::Message /* @@protoc_insertion_poi
// implements Message ----------------------------------------------
inline player_data* New() const final {
return CreateMaybeMessage<player_data>(NULL);
return CreateMaybeMessage<player_data>(nullptr);
}
player_data* New(::google::protobuf::Arena* arena) const final {
......@@ -118,16 +124,21 @@ class player_data : public ::google::protobuf::Message /* @@protoc_insertion_poi
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const player_data& from);
void MergeFrom(const player_data& from);
void Clear() final;
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
#else
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
......@@ -137,10 +148,10 @@ class player_data : public ::google::protobuf::Message /* @@protoc_insertion_poi
void InternalSwap(player_data* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
return nullptr;
}
inline void* MaybeArenaPtr() const {
return NULL;
return nullptr;
}
public:
......@@ -250,18 +261,7 @@ class player_data : public ::google::protobuf::Message /* @@protoc_insertion_poi
// @@protoc_insertion_point(class_scope:player_data)
private:
void set_has_name();
void clear_has_name();
void set_has_health();
void clear_has_health();
void set_has_x();
void clear_has_x();
void set_has_y();
void clear_has_y();
void set_has_velocity();
void clear_has_velocity();
void set_has_selected_tool();
void clear_has_selected_tool();
class HasBitSetters;
// helper for ByteSizeLong()
size_t RequiredFieldsByteSizeFallback() const;
......@@ -270,20 +270,20 @@ class player_data : public ::google::protobuf::Message /* @@protoc_insertion_poi
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedField< ::google::protobuf::int32 > inventory_item_id_;
mutable int _inventory_item_id_cached_byte_size_;
mutable std::atomic<int> _inventory_item_id_cached_byte_size_;
::google::protobuf::RepeatedField< ::google::protobuf::int32 > inventory_number_;
mutable int _inventory_number_cached_byte_size_;
mutable std::atomic<int> _inventory_number_cached_byte_size_;
::google::protobuf::RepeatedField< ::google::protobuf::int32 > toolbar_item_id_;
mutable int _toolbar_item_id_cached_byte_size_;
mutable std::atomic<int> _toolbar_item_id_cached_byte_size_;
::google::protobuf::RepeatedField< ::google::protobuf::int32 > toolbar_number_;
mutable int _toolbar_number_cached_byte_size_;
mutable std::atomic<int> _toolbar_number_cached_byte_size_;
::google::protobuf::internal::ArenaStringPtr name_;
::google::protobuf::int64 x_;
::google::protobuf::int32 health_;
::google::protobuf::int32 velocity_;
::google::protobuf::int64 y_;
::google::protobuf::int32 selected_tool_;
friend struct ::protobuf_src_2fplayer_2ddata_2eproto::TableStruct;
friend struct ::TableStruct_src_2fplayer_2ddata_2eproto;
};
// ===================================================================
......@@ -300,63 +300,57 @@ class player_data : public ::google::protobuf::Message /* @@protoc_insertion_poi
inline bool player_data::has_name() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void player_data::set_has_name() {
_has_bits_[0] |= 0x00000001u;
}
inline void player_data::clear_has_name() {
_has_bits_[0] &= ~0x00000001u;
}
inline void player_data::clear_name() {
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_name();
_has_bits_[0] &= ~0x00000001u;
}
inline const ::std::string& player_data::name() const {
// @@protoc_insertion_point(field_get:player_data.name)
return name_.GetNoArena();
}
inline void player_data::set_name(const ::std::string& value) {
set_has_name();
_has_bits_[0] |= 0x00000001u;
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:player_data.name)
}
#if LANG_CXX11
inline void player_data::set_name(::std::string&& value) {
set_has_name();
_has_bits_[0] |= 0x00000001u;
name_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:player_data.name)
}
#endif
inline void player_data::set_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_name();
GOOGLE_DCHECK(value != nullptr);
_has_bits_[0] |= 0x00000001u;
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:player_data.name)
}
inline void player_data::set_name(const char* value, size_t size) {
set_has_name();
_has_bits_[0] |= 0x00000001u;
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:player_data.name)
}
inline ::std::string* player_data::mutable_name() {
set_has_name();
_has_bits_[0] |= 0x00000001u;
// @@protoc_insertion_point(field_mutable:player_data.name)
return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* player_data::release_name() {
// @@protoc_insertion_point(field_release:player_data.name)
if (!has_name()) {
return NULL;
return nullptr;
}
clear_has_name();
_has_bits_[0] &= ~0x00000001u;
return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void player_data::set_allocated_name(::std::string* name) {
if (name != NULL) {
set_has_name();
if (name != nullptr) {
_has_bits_[0] |= 0x00000001u;
} else {
clear_has_name();
_has_bits_[0] &= ~0x00000001u;
}
name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
// @@protoc_insertion_point(field_set_allocated:player_data.name)
......@@ -366,22 +360,16 @@ inline void player_data::set_allocated_name(::std::string* name) {
inline bool player_data::has_health() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void player_data::set_has_health() {
_has_bits_[0] |= 0x00000004u;
}
inline void player_data::clear_has_health() {
_has_bits_[0] &= ~0x00000004u;
}
inline void player_data::clear_health() {
health_ = 0;
clear_has_health();
_has_bits_[0] &= ~0x00000004u;
}
inline ::google::protobuf::int32 player_data::health() const {
// @@protoc_insertion_point(field_get:player_data.health)
return health_;
}
inline void player_data::set_health(::google::protobuf::int32 value) {
set_has_health();
_has_bits_[0] |= 0x00000004u;
health_ = value;
// @@protoc_insertion_point(field_set:player_data.health)
}
......@@ -390,22 +378,16 @@ inline void player_data::set_health(::google::protobuf::int32 value) {
inline bool player_data::has_x() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void player_data::set_has_x() {
_has_bits_[0] |= 0x00000002u;
}
inline void player_data::clear_has_x() {
_has_bits_[0] &= ~0x00000002u;
}
inline void player_data::clear_x() {
x_ = GOOGLE_LONGLONG(0);
clear_has_x();
x_ = PROTOBUF_LONGLONG(0);
_has_bits_[0] &= ~0x00000002u;
}
inline ::google::protobuf::int64 player_data::x() const {
// @@protoc_insertion_point(field_get:player_data.x)
return x_;
}
inline void player_data::set_x(::google::protobuf::int64 value) {
set_has_x();
_has_bits_[0] |= 0x00000002u;
x_ = value;
// @@protoc_insertion_point(field_set:player_data.x)
}
......@@ -414,22 +396,16 @@ inline void player_data::set_x(::google::protobuf::int64 value) {
inline bool player_data::has_y() const {
return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void player_data::set_has_y() {
_has_bits_[0] |= 0x00000010u;
}
inline void player_data::clear_has_y() {
_has_bits_[0] &= ~0x00000010u;
}
inline void player_data::clear_y() {
y_ = GOOGLE_LONGLONG(0);
clear_has_y();
y_ = PROTOBUF_LONGLONG(0);
_has_bits_[0] &= ~0x00000010u;
}
inline ::google::protobuf::int64 player_data::y() const {
// @@protoc_insertion_point(field_get:player_data.y)
return y_;
}
inline void player_data::set_y(::google::protobuf::int64 value) {
set_has_y();
_has_bits_[0] |= 0x00000010u;
y_ = value;
// @@protoc_insertion_point(field_set:player_data.y)
}
......@@ -438,22 +414,16 @@ inline void player_data::set_y(::google::protobuf::int64 value) {
inline bool player_data::has_velocity() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void player_data::set_has_velocity() {
_has_bits_[0] |= 0x00000008u;
}
inline void player_data::clear_has_velocity() {
_has_bits_[0] &= ~0x00000008u;
}
inline void player_data::clear_velocity() {
velocity_ = 0;
clear_has_velocity();
_has_bits_[0] &= ~0x00000008u;
}
inline ::google::protobuf::int32 player_data::velocity() const {
// @@protoc_insertion_point(field_get:player_data.velocity)
return velocity_;
}
inline void player_data::set_velocity(::google::protobuf::int32 value) {
set_has_velocity();
_has_bits_[0] |= 0x00000008u;
velocity_ = value;
// @@protoc_insertion_point(field_set:player_data.velocity)
}
......@@ -582,22 +552,16 @@ player_data::mutable_toolbar_number() {
inline bool player_data::has_selected_tool() const {
return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void player_data::set_has_selected_tool() {
_has_bits_[0] |= 0x00000020u;
}
inline void player_data::clear_has_selected_tool() {
_has_bits_[0] &= ~0x00000020u;
}
inline void player_data::clear_selected_tool() {
selected_tool_ = 0;
clear_has_selected_tool();
_has_bits_[0] &= ~0x00000020u;
}
inline ::google::protobuf::int32 player_data::selected_tool() const {
// @@protoc_insertion_point(field_get:player_data.selected_tool)
return selected_tool_;
}
inline void player_data::set_selected_tool(::google::protobuf::int32 value) {
set_has_selected_tool();
_has_bits_[0] |= 0x00000020u;
selected_tool_ = value;
// @@protoc_insertion_point(field_set:player_data.selected_tool)
}
......@@ -611,4 +575,5 @@ inline void player_data::set_selected_tool(::google::protobuf::int32 value) {
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // PROTOBUF_INCLUDED_src_2fplayer_2ddata_2eproto
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment