This repository has been archived by the owner on Jun 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #396 from renatomassaro/nasty-virus
Expand Storyline to include NastyVirus sub-chapter
- Loading branch information
Showing
22 changed files
with
738 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import Helix.Event | ||
|
||
defmodule Helix.Client.Event.Action do | ||
|
||
event Performed do | ||
@moduledoc """ | ||
`ClientActionPerformedEvent` is emitted when the client performed a custom | ||
action that should be tracked by the backend for a specific behaviour. | ||
Examples include the tutorial quest, which awaits for the player to open | ||
apps in order to proceed with the storyline. | ||
""" | ||
|
||
alias Helix.Entity.Model.Entity | ||
alias Helix.Client.Model.Client | ||
|
||
event_struct [:client, :entity_id, :action] | ||
|
||
@type t :: | ||
%__MODULE__{ | ||
client: Client.t, | ||
entity_id: Entity.id, | ||
action: Client.action | ||
} | ||
|
||
@spec new(Client.t, Entity.id, Client.action) :: | ||
t | ||
def new(client, entity_id, action) do | ||
%__MODULE__{ | ||
client: client, | ||
entity_id: entity_id, | ||
action: action | ||
} | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.