mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-05 18:02:25 +00:00
refactor: move leaderboard/network interfaces back into app
This commit is contained in:
parent
2db4893997
commit
7ccdd0fd71
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "platform/IPlatformLeaderboard.h"
|
#include "app/common/Leaderboards/IPlatformLeaderboard.h"
|
||||||
|
|
||||||
class LeaderboardManager : public IPlatformLeaderboard {
|
class LeaderboardManager : public IPlatformLeaderboard {
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
#include <qnet.h>
|
#include <qnet.h>
|
||||||
#endif
|
#endif
|
||||||
#include "platform/PlatformTypes.h"
|
#include "platform/PlatformTypes.h"
|
||||||
#include "platform/IPlatformNetwork.h"
|
#include "app/common/Network/IPlatformNetwork.h"
|
||||||
#include "platform/NetTypes.h"
|
#include "platform/NetTypes.h"
|
||||||
#include "minecraft/network/platform/NetworkPlayerInterface.h"
|
#include "minecraft/network/platform/NetworkPlayerInterface.h"
|
||||||
#include "PlatformNetworkManagerStub.h"
|
#include "PlatformNetworkManagerStub.h"
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
#include "minecraft/client/model/SkinBox.h"
|
#include "minecraft/client/model/SkinBox.h"
|
||||||
#include "platform/XboxStubs.h"
|
#include "platform/XboxStubs.h"
|
||||||
#include "minecraft/network/platform/NetworkPlayerInterface.h"
|
#include "minecraft/network/platform/NetworkPlayerInterface.h"
|
||||||
#include "platform/IPlatformNetwork.h"
|
#include "app/common/Network/IPlatformNetwork.h"
|
||||||
#include "minecraft/network/platform/SessionInfo.h"
|
#include "minecraft/network/platform/SessionInfo.h"
|
||||||
#include "platform/C4JThread.h"
|
#include "platform/C4JThread.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,11 @@
|
||||||
#define VER_PRODUCTBUILD 560
|
#define VER_PRODUCTBUILD 560
|
||||||
// This goes up if there is any change to network traffic or code in a build
|
// This goes up if there is any change to network traffic or code in a build
|
||||||
#define VER_NETWORK 560
|
#define VER_NETWORK 560
|
||||||
|
|
||||||
|
// Network protocol version. Sent in the pre-login packet so client and
|
||||||
|
// server can detect mismatched builds.
|
||||||
|
#define MINECRAFT_NET_VERSION VER_NETWORK
|
||||||
|
|
||||||
#define VER_PRODUCTBUILD_QFE 0
|
#define VER_PRODUCTBUILD_QFE 0
|
||||||
|
|
||||||
#define VER_FILEVERSION_STRING "1.6"
|
#define VER_FILEVERSION_STRING "1.6"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
#include "minecraft/BuildVer.h"
|
#include "minecraft/BuildVer.h"
|
||||||
#include "platform/IPlatformNetwork.h"
|
|
||||||
#include "PacketListener.h"
|
#include "PacketListener.h"
|
||||||
#include "java/InputOutputStream/DataInputStream.h"
|
#include "java/InputOutputStream/DataInputStream.h"
|
||||||
#include "java/InputOutputStream/DataOutputStream.h"
|
#include "java/InputOutputStream/DataOutputStream.h"
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@
|
||||||
#include "minecraft/GameEnums.h"
|
#include "minecraft/GameEnums.h"
|
||||||
#include "minecraft/BuildVer.h"
|
#include "minecraft/BuildVer.h"
|
||||||
#include "minecraft/network/platform/NetworkPlayerInterface.h"
|
#include "minecraft/network/platform/NetworkPlayerInterface.h"
|
||||||
#include "platform/IPlatformNetwork.h"
|
|
||||||
#include "platform/NetTypes.h"
|
#include "platform/NetTypes.h"
|
||||||
#include "PlayerConnection.h"
|
#include "PlayerConnection.h"
|
||||||
#include "ServerConnection.h"
|
#include "ServerConnection.h"
|
||||||
|
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <memory>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
class File;
|
|
||||||
class Mob;
|
|
||||||
class Options;
|
|
||||||
|
|
||||||
class IPlatformSound {
|
|
||||||
public:
|
|
||||||
virtual ~IPlatformSound() = default;
|
|
||||||
|
|
||||||
virtual void init(Options*) = 0;
|
|
||||||
virtual void destroy() = 0;
|
|
||||||
virtual void tick(std::shared_ptr<Mob>* players, float a) = 0;
|
|
||||||
|
|
||||||
// SFX
|
|
||||||
virtual void play(int iSound, float x, float y, float z, float volume,
|
|
||||||
float pitch) = 0;
|
|
||||||
virtual void playUI(int iSound, float volume, float pitch) = 0;
|
|
||||||
|
|
||||||
// Streaming / music
|
|
||||||
virtual void playStreaming(const std::string& name, float x, float y,
|
|
||||||
float z, float volume, float pitch,
|
|
||||||
bool bMusicDelay = true) = 0;
|
|
||||||
virtual void playMusicTick() = 0;
|
|
||||||
virtual void updateMusicVolume(float fVal) = 0;
|
|
||||||
virtual void updateSystemMusicPlaying(bool isPlaying) = 0;
|
|
||||||
virtual void updateSoundEffectVolume(float fVal) = 0;
|
|
||||||
|
|
||||||
// Asset registration
|
|
||||||
virtual void add(const std::string& name, File* file) = 0;
|
|
||||||
virtual void addMusic(const std::string& name, File* file) = 0;
|
|
||||||
virtual void addStreaming(const std::string& name, File* file) = 0;
|
|
||||||
virtual char* ConvertSoundPathToName(const std::string& name,
|
|
||||||
bool bConvertSpaces = false) = 0;
|
|
||||||
};
|
|
||||||
Loading…
Reference in a new issue