GodotSteam

Godot 游戏引擎的 Steam api。「Steam api for Godot game engine」

  • 所有者: Mavhod/GodotSteam
  • 平台: Windows,Linux,Mac
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者Mavhod/GodotSteam
主編程語言C++
編程語言GDScript (語言數: 3)
平台
許可證
所有者活动
創建於2015-11-14 04:07:16
推送於2017-10-06 20:13:53
最后一次提交2017-10-07 03:13:26
發布數0
用户参与
星數62
關注者數8
派生數12
提交數6
已啟用問題?
問題數2
打開的問題數1
拉請求數0
打開的拉請求數0
關閉的拉請求數2
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?