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
public void onGetAllRoomsDone (AllRoomsEvent eventObj) | |
{ | |
//Log ("onGetAllRoomsDone : " + eventObj.getResult()); | |
byte rslt = eventObj.getResult(); | |
if(rslt == 0) | |
{ | |
string[] roomIds = eventObj.getRoomIds(); | |
if( roomIds.Length == 1 ) | |
{ | |
TOTlog("2 onGetAllRoomsDone because you called GetAllRooms(): Only default room so we are creating a new one"); |
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 TOTmoveCommand | |
{ | |
public string cmd; // INIT, SETP, MOV, etc | |
public int plr; | |
public int typ; | |
public int rot; | |
public int lx; | |
public int ly; | |
public float px; | |
public float pz; |
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
Dictionary<string, object> roomProps = new Dictionary<string, object>(); | |
roomProps.Add("Blue", "empty"); | |
roomProps.Add("Red", "empty"); | |
roomProps.Add("Green", "empty"); | |
roomProps.Add("Orange", "empty"); | |
WarpClient.GetInstance().CreateRoom("Echo", "Mich", 4, roomProps); |
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
This top code snippet works if the Dictionary is accessed directly and it's not returned in a call back. | |
-------------------------------------------------------------------------------------------------------------- | |
properties = new Dictionary<string, object>(); | |
properties.Add("Blue", "Dan"); | |
properties.Add("Red", "Joe"); | |
foreach(KeyValuePair<string, object> pair in properties) | |
{ | |
if(pair.Value == "Dan" ) | |
{ |
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
{ | |
"name": "TheOctagonTheory", | |
"subdomain": "tot", | |
"scripts": { | |
"start": "server.js" | |
}, | |
"dependencies": { | |
"socket.io": "0.9.x" | |
}, | |
"engines": { |
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
iMac27:Nodejitsu Caster$ jitsu deploy | |
path.existsSync is now called `fs.existsSync`. | |
info: Welcome to Nodejitsu tot | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
warn: There in no valid package.json file in /Users/Caster/Desktop/Nodejitsu | |
warn: Creating package.json at /Users/Caster/Desktop/Nodejitsu/package.json | |
help: | |
help: A package.json stores meta-data about your application | |
help: In order to continue we'll need to gather some information about your app |
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
iMac27:~ Caster$ sudo jitsu users confirm tot Sq*********oGlz- | |
path.existsSync is now called `fs.existsSync`. | |
info: Welcome to Nodejitsu | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command users confirm tot SqtWj_pxcP6oGlz- | |
info: Confirming user tot | |
error: Error running command users confirm tot SqtWj_pxcP6oGlz- | |
error: socket hang up | |
error: Error: socket hang up | |
error: at createHangUpError (http.js:1253:15) |
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
iMac27:~ Caster$ sudo npm ls -g | |
/usr/local/n/versions/0.8.1/lib | |
├─┬ [email protected] | |
│ ├── [email protected] | |
│ ├── [email protected] | |
│ ├── [email protected] | |
│ ├─┬ [email protected] | |
│ │ ├─┬ [email protected] | |
│ │ │ ├─┬ [email protected] | |
│ │ │ │ └── [email protected] |