-
Notifications
You must be signed in to change notification settings - Fork 0
/
ViewOnlineCheat.h
41 lines (34 loc) · 1.06 KB
/
ViewOnlineCheat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#include <Spore\BasicIncludes.h>
class ViewOnlineCheat
: public ArgScript::ICommand, public Sporepedia::IShopperListener
{
public:
ViewOnlineCheat();
~ViewOnlineCheat();
enum AssetWebsite
{
/// Spore.com official Sporepedia
Sporepedia,
/// Spore.com pollinator asset browser
Pollinator,
/// Spore.com static XML model
Model,
/// Spore Community Sporepedia
CommunitySporepedia,
/// Spore Community asset tool
Tool,
/// Sporistics
Sporistics
};
// Called when the cheat is invoked
void ParseLine(const ArgScript::Line& line) override;
// Returns a string containing the description. If mode != DescriptionMode::Basic, return a more elaborated description
const char* GetDescription(ArgScript::DescriptionMode mode) const override;
// Called when an asset is selected in the Sporepedia
void OnShopperAccept(const ResourceKey& selection) override;
// Opens the Spore.com Sporepedia page for the specified asset
void OpenAssetWebpage(uint32_t instanceId, uint32_t groupId, AssetWebsite website);
private:
AssetWebsite websiteToOpen;
};