-
fork from greenworks.js
-
added types for typescript, clone from here
-
version number sync as nw.js (v0.92.0)
-
added matching function:
requestLobbyList()(the return is useless same ascreataLobby, useSteamEvent.LobbyMatchListto recieve the result)getLobbyMemberLimit(steamIDLobby: string): numbersetLobbyMemberLimit(steamIDLobby: string,limit: number): booleangetLobbyMemberData(steamIDLobby: string, steamIDMember: string, pchKey: string): stringsetLobbyMemberData(steamIDLobby: string, pchKey: string, pchValue: string): voidgetLobbyDataCount(steamIDLobby: string): numbergetLobbyDataByIndex(steamIDLobby: string, index:number): {key: string, value: string}sendLobbyChatMsg(steamIDLobby: string,data: Buffer): booleangetLobbyChatEntry(steamIDLobby: string,chatID: number): {steamIDUser: string, data: Buffer,chatEntryType: eChatEntryType}
-
added p2p function:
sendP2PPacket(steamId: string, sendType: eP2PSendType, data: Buffer,nChannel?:number): booleanisP2PPacketAvailable(nChannel?:number): numberreadP2PPacket(size: number,nChannel?:number):{data: Buffer,steamIDRemote: string}acceptP2PSessionWithUser(steamId: string): voidgetP2PSessionState(steamIDUser: string): {result:boolean,connectionState:🍵}closeP2PSessionWithUser(steamIDUser: string): booleancloseP2PChannelWithUser(steamIDUser: string, nChannel: number): booleanisBehindNAT():boolean
-
added enum
eP2PSendType,eChatMemberStateChange,eChatEntryType,eChatMemberStateChange -
added Event:
SteamEvent.LobbyMatchListcallback:(LobbiesMatching: number)(after calledrequestLobbyList)SteamEvent.P2PSessionRequestcallback:(steamIDRemote: string)(after other player calledacceptP2PSessionWithUser)SteamEvent.P2PSessionConnectFailcallback:(steamIDRemote: string,eP2PSessionError:number)(after connected player quit)SteamEvent.LobbyChatUpdatecallback:(SteamIDLobby: string, SteamIDUserChanged: string, SteamIDMakingChange: string,ChatMemberStateChange:eChatMemberStateChange)(It's not about chat actually, It's player enter/leave etc)SteamEvent.LobbyChatMsgcallback:(steamIDLobby: string,steamIDUser: string,chatEntryType:eChatEntryType,chatID:number)
-
use case please reference steam Matchmaking api , steam maatchNetworking api
forked from greenheartgames/greenworks
-
Notifications
You must be signed in to change notification settings - Fork 0
a node.js plugin to integrate nw.js/electron games with steamworks with p2p
License
Hocti/greenteaworks
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
a node.js plugin to integrate nw.js/electron games with steamworks with p2p
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- C++ 87.5%
- Python 7.6%
- JavaScript 4.6%
- Other 0.3%