Giter Club home page Giter Club logo

libprotobuf_ue4's Introduction

libprotobuf for Unreal Engine 4

Join the chat at https://gitter.im/code4game/libprotobuf

Link the google's protocol bufffers library as the third party in Unreal Engine 4.

Usage

  1. Import or copy this project into <your project or plugin>/Source/ThirdParty/libprotobuf.
  2. Add the libprotobuf as a module into <your project>.Build.cs
  • PrivateDependencyModuleNames.AddRange(new string[] { "CoreUObject", "Engine", "libprotobuf" });
  1. Generate two code files (header & source, ex: Message.pb.h & Message.pb.cc) of the protocal by protoc for cpp. (Ref: Google's Protocol Buffers)
  2. Put them into the source directory (Private or Public) of your project.
  3. Regenerate the code file for Unreal Engine 4 by regenerateforue4.py.
    • python regenerateforue4.py 'the source file'
    • ex: python regenerateforue4.py Message.pb.cc
    • You should get this information: Success to regenerate the code for UE4
  4. You need include two header files when include the header file(ex: Message.pb.h).
    • #include "AllowWindowsPlatformTypes.h" //< before include the header file
    • #include "your code header file" //< ex: #include "Message.pb.h"
    • #include "HideWindowsPlatformTypes.h" //< after include the header file
  5. Include and use the header file(ex: Message.pb.h) in your .cpp file.
  6. That's all.

Roadmap

  • Write a tutorial for the usage and create an example
  • Support mobile platforms - Android/iOS/Windows Phone

License

Use The MIT License.

Copyright (c) 2016, Code 4 Game.

libprotobuf_ue4's People

Contributors

alexchicn avatar gitter-badger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.