Giter VIP home page Giter VIP logo

nakama-cocos2d-x's People

Contributors

dimon4eg avatar joshr604 avatar lugehorsam avatar mofirouz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nakama-cocos2d-x's Issues

Upgrade to Nakama 2.

Currently the client is compatible with Nakama 1.4.x. We should update the client to use Nakama 2 and use Nakama C++ Client as much as possible to minimise code duplication.

The client should work on Desktop, iOS, Android and as many other target outputs as possible. This client library is the sibling library to Nakama Cocos2d-x Javascript (which is already compatible with Nakama 2).

Send INUncollatedMessage

I am unable to send a NMatchDataSendMessage in the cocos2dx SDK, looking at the Unreal SDK it seems there is a missing function in NClient:

void NClient::Send(INUncollatedMessage& message, std::function<void(NError)> errback)

I can't find any other way to send an 'INUncollatedMessage' message..

Incorrect value returned from NSession::HasExpired

From the server documentation (and the wording of the function) it seems that HasExpired should return true when ‘time’ is greater than or equal to ‘expiresAt’.

Currently it returns true if time is less than or equal to expiresAt in both cocos2dx & unreal SDKs:

bool NSession::HasExpired(milliseconds time)
{
return time <= expiresAt;
}

Whereas the js and .net SDKs are consistent with the documentation:

isexpired(currenttime: number): boolean {
return (this.expires_at - currenttime) < 0;
}

public bool HasExpired(DateTime dateTime)
{
var expireDatetime = Epoch + TimeSpan.FromSeconds(ExpireTime);
return dateTime > expireDatetime;
}

Undefiend reference to google::protobuf

When I'm trying to build using android studio im receiving this.

[x86] Compile++      : libmygame_shared <= NGroupKickUserMessage.cpp
[x86] Compile++      : libmygame_shared <= NStorageRemoveMessage.cpp
[x86] SharedLibrary  : libmygame.so
/mygame_cpp/mygame/proj.android-studio/app/jni/../../../Classes/ThirdParty/include/google/protobuf/wire_format_lite.h:713: error: undefined reference to 'google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::string*)'
/mygame_cpp/mygame/proj.android-studio/app/jni/../../../Classes/Nakama/Private/NakamaSDK/api.pb.cc:565: error: undefined reference to 'google::protobuf::DescriptorPool::FindFileByName(std::string const&) const'
/mygame_cpp/mygame/proj.android-studio/app/jni/../../../Classes/Nakama/Private/NakamaSDK/api.pb.cc:3830: error: undefined reference to 'google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::string const&))'
/mygame_cpp/mygame/proj.android-studio/app/jni/../../../Classes/Nakama/Private/NakamaSDK/api.pb.cc:4328: error: undefined reference to 'google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::string const&, google::protobuf::io::CodedOutputStream*)'
/mygame_cpp/mygame/proj.android-studio/app/jni/../../../Classes/ThirdParty/include/google/protobuf/wire_format_lite_inl.h:765: error: undefined reference to 'google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::string const&, unsigned char*)'

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.