Skip to content

Commit

Permalink
Added ability to mock entry point data while testing locally
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Jun 3, 2021
1 parent 59ac944 commit 56ecfd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions fbinstant/utils/mock.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ fbinstant.ERROR_USER_INPUT = "USER_INPUT"

local player_data = {}

local entry_point_data = {}

local session_data = {}

local player_stats = {}
Expand All @@ -71,7 +69,7 @@ local leaderboards = {}

local purchases = {}


fbinstant.ENTRY_POINT_DATA = {}
fbinstant.PLAYER = {}
fbinstant.PLAYERS = {}
fbinstant.CONNECTED_PLAYERS = {}
Expand Down Expand Up @@ -217,7 +215,7 @@ end

function fbinstant.get_entry_point_data()
print("get_entry_point_data")
return rxijson.encode(entry_point_data)
return rxijson.encode(fbinstant.ENTRY_POINT_DATA)
end

function fbinstant.get_entry_point(cb)
Expand Down
2 changes: 1 addition & 1 deletion game.project
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
title = XOXO
title = FBInstant
bundle_resources = /bundle_resources
bundle_exclude_resources =
dependencies#0 = https://github.com/britzl/gooey/archive/6.5.0.zip
Expand Down

0 comments on commit 56ecfd1

Please sign in to comment.