This file contains hidden or 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
| #include <algorithm> | |
| #include "swganh/base/swg_message.h" | |
| #include "swganh/base/data/bank.h" | |
| #include "swganh/base/data/ham.h" | |
| #include "swganh/base/data/skills.h" | |
| // Originates on Server | |
| namespace swganh { | |
| namespace scene { |
This file contains hidden or 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
| -- MySQL Administrator dump 1.4 | |
| -- | |
| -- ------------------------------------------------------ | |
| -- Server version 5.5.14 | |
| /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
| /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
| /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
| /*!40101 SET NAMES utf8 */; |
This file contains hidden or 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
| -- MySQL Administrator dump 1.4 | |
| -- | |
| -- ------------------------------------------------------ | |
| -- Server version 5.1.48-community | |
| /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
| /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
| /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
| /*!40101 SET NAMES utf8 */; |
This file contains hidden or 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
| delimiter $$ | |
| CREATE TABLE `accounts` ( | |
| `account_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Account ID', | |
| `account_username` char(32) NOT NULL DEFAULT '' COMMENT 'Account username', | |
| `account_password` char(64) NOT NULL COMMENT 'Account password', | |
| `account_station_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Account STATION_ID', | |
| `account_level` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Account - CSR Flag', | |
| `account_banned` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Account - Banned Status', | |
| `account_email` char(64) NOT NULL DEFAULT '' COMMENT 'Account - User email', |
This file contains hidden or 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
| cd S:/swganh/build/ | |
| cmake -DVENDOR_PREFIX=$PWD/../../vendor .. | |
| cd src | |
| explorer swganh.sln |
This file contains hidden or 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
| template<typename T> | |
| struct BaseANHPacket { | |
| // header | |
| uint16_t priority; | |
| uint32_t time_stamp; | |
| uint32_t process_id; | |
| void serialize(anh::ByteBuffer& buffer) const { | |
| buffer.write(priority); | |
| buffer.write(time_stamp); |
This file contains hidden or 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
| struct LoginClientToken | |
| { | |
| LoginClientToken(anh::ByteBuffer& buffer) | |
| { | |
| deserialize(buffer); | |
| } | |
| LoginClientToken(anh::ByteBuffer session_key_, int32_t account_id_, std::string account_username_) | |
| : session_key(session_key_) | |
| , account_id(account_id_) | |
| , account_username(account_username_) |
This file contains hidden or 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
| struct DataChannelMessage | |
| { | |
| DataChannelMessage(uint32_t session_id_, anh::ByteBuffer& data_) | |
| : session_id(session_id_) | |
| , data(data_) | |
| {} | |
| uint32_t session_id; | |
| anh::ByteBuffer data; | |
| }; |
This file contains hidden or 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
| namespace packets { | |
| struct BasePacket | |
| { | |
| BasePacket(){} | |
| explicit BasePacket(uint32_t session_, uint32_t crc_) | |
| , session(session_) | |
| , crc(crc_) | |
| {} | |
| uint32_t session; | |
| uint32_t crc; |
This file contains hidden or 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
| class ScriptComponent { | |
| struct { | |
| std::string name; | |
| std::string file_name; | |
| std::shared_ptr<IEvent> on_event; | |
| }SCRIPTDATA; | |
| SCRIPTDATA[] scripts; | |
| } |
NewerOlder