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
$ ./Game.app -startMapSpawnServer -spawnExePath "Path of your execution file such as /Game/Game.app" -startCentralServer -startChatServer |
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
D:\MMO\MMO.exe -startMapSpawnServer -spawnExePath "D:\MMO\MMO.exe" -startCentralServer -startChatServer -machineAddress "192.168.1.102" |
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
-machineAddress "Address to your machine" |
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
-startMapSpawnServer | |
-spawnExePath "Path of your execution file such as C:\Game\Game.exe" | |
-startCentralServer | |
-startChatServer |
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
// Add soft currency (coin) | |
var increaseSoftCurrency = 100; // Adding 100 coins | |
var softCurrency = GetCurrency(playerId, GameInstance.GameDatabase.softCurrency.id); | |
softCurrency.Amount += increaseSoftCurrency; | |
colPlayerCurrency.Update(softCurrency); | |
// Add hard currency (gem) | |
var increaseHardCurrency = 50; // Adding 50 gems | |
var hardCurrency = GetCurrency(playerId, GameInstance.GameDatabase.hardCurrency.id); | |
hardCurrency.Amount += increaseHardCurrency; |
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
using LiteNetLibManager; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace MultiplayerARPG | |
{ | |
public partial class PlayerCharacterEntity | |
{ | |
[DevExtMethods("Start")] |
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
var sum = 0; | |
for (var i = 0; i < 16; ++i) | |
{ | |
console.log(1 << i); | |
sum += (1 << i); | |
} | |
console.log("sum : " + sum); |
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
{ | |
"centralAddress" : "localhost", | |
"centralPort" : 6000, | |
"centralMaxConnections" : 1100, | |
"machineAddress" : "yourdomain.com", | |
"mapSpawnPort" : 6001, | |
"mapSpawnMaxConnections" : 2, | |
"spawnExePath" : "./Build.exe", | |
"notSpawnInBatchMode" : false, |
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
{ | |
"mySqlAddress" : "localhost", | |
"mySqlPort" : 3306, | |
"mySqlUsername" : "root", | |
"mySqlPassword" : "", | |
"mySqlDbName" : "mmorpgtemplate" | |
} |
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
{ | |
"sqliteDbPath" : "./mmorpgtemplate.sqlite3" | |
} |