• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Mavhod/GodotSteam: Steam api for Godot game engine

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

Mavhod/GodotSteam

开源软件地址:

https://github.com/Mavhod/GodotSteam

开源编程语言:

C++ 60.7%

开源软件介绍:

GodotSteam

Steam api for Godot2.

APIs for steam I will add it later.

How to use

  • Download Steamworks SDK.

  • Copy:

    sdk/public
    sdk/redistributable_bin
    

    To

    godotsteam/sdk
    

    The directory contents should look like this:

    godotsteam/sdk/public/*
    godotsteam/sdk/redistributable_bin/*
    godotsteam/SCsub
    godotsteam/config.py
    godotsteam/godotsteam.cpp
    godotsteam/godotsteam.h
    godotsteam/register_types.cpp
    godotsteam/register_types.h
    
  • Drop the "godotsteam" directory inside the "modules" directory on the Godot source. Recompile for your platform.

    For Linux you must add openssl=no when compile because it has problem with lib crypto (class StreamPeerSSL may can't use).

    For Windows you can only compile with Visual C++ can't use MINGW because *.lib is exclusive for Microsoft compiler.

  • Copy shared library (steam_api) to godot binary place, should look like this:

    Linux 32

    ./linux32/libsteam_api.so
    ./godot_binary
    

    Linux 64

    ./linux64/libsteam_api.so
    ./godot_binary
    

    Windows 32

    ./steam_api.dll
    ./godot_binary.exe
    

    Windows 64

    ./steam_api64.dll
    ./godot_binary.exe
    

    OSX

    ./libsteam_api.dylib
    ./godot_binary
    

API Reference

bool init()
If success return true.


bool cloudIsEnabledForAccount()

bool cloudIsEnabledForApp()

uint32_t cloudGetCount()

Dictionary cloudGetFileNameAndSize( int iFile )
iFile: Index of file
Return dictionary members: fileName, fileSize

bool cloudFileWrite( const String &pchFile, const Variant &pvData )
pchFile: File name
pvData: Data for written

Variant cloudFileRead( const String &pchFile )
pchFile: File name
Return data read

bool cloudFileDelete( const String &pchFile )
pchFile: File name


uint32_t achievementsGetNum()

String achievementGetName( uint32_t iAchievement )

bool achievementSet( const String &pchName )

Dictionary achievementGet( const String &pchName )
Return dictionary members: isSuccessGet, isAchieved

bool achievementClear( const String &pchName )

License

MIT license




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap