Weirest bug ever happened, it said "Item.ItemInformation" is higher protection level than Item.Tack even though both were public, i eventurally found that it was because Item was "class" where as "Item.Tack" was "public class" so i made everything be "public class"

This commit is contained in:
SilicaPi 2021-01-31 01:18:52 +13:00
parent 6a620f4be5
commit 3c25795188
50 changed files with 186 additions and 60 deletions

View file

@ -4,7 +4,7 @@ using System.IO;
namespace HISP.Server
{
class ConfigReader
public class ConfigReader
{
public static int Port;
public static string BindIP;

View file

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace HISP.Server
{
class Converters
public class Converters
{
// Thanks Stackoverflow (https://stackoverflow.com/questions/321370/how-can-i-convert-a-hex-string-to-a-byte-array)
private static int getHexVal(char hex)

View file

@ -5,10 +5,11 @@ using HISP.Game;
using HISP.Player;
using HISP.Game.Horse;
using HISP.Game.Inventory;
using HISP.Game.Items;
namespace HISP.Server
{
class Database
public class Database
{
public static string ConnectionString = "";

View file

@ -9,7 +9,7 @@ using HISP.Game.Horse;
namespace HISP.Server
{
class GameClient
public class GameClient
{
public Socket ClientSocket;
public string RemoteIp;

View file

@ -7,10 +7,11 @@ using HISP.Player;
using HISP.Game.Services;
using HISP.Game.SwfModules;
using HISP.Game.Horse;
using HISP.Game.Items;
namespace HISP.Server
{
class GameDataJson
public class GameDataJson
{
public static void ReadGamedata()

View file

@ -16,10 +16,11 @@ using HISP.Game.Services;
using HISP.Game.Inventory;
using HISP.Game.SwfModules;
using HISP.Game.Horse;
using HISP.Game.Items;
namespace HISP.Server
{
class GameServer
public class GameServer
{
public static Socket ServerSocket;

View file

@ -2,7 +2,7 @@
namespace HISP.Server
{
class Logger
public class Logger
{
public static void HackerPrint(string text) // When someone is obviously cheating.
{

View file

@ -7,7 +7,7 @@ using HISP.Game.SwfModules;
namespace HISP.Server
{
class PacketBuilder
public class PacketBuilder
{
public const byte PACKET_TERMINATOR = 0x00;