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
// Requires ember.js and ember-data.js, socket.io | |
// Initializer for Models | |
window.Models = {}; | |
var SOCKET = '/'; // Served off the root of our app | |
var ID = 'uuid'; | |
var FIND = 'find'; | |
var FIND_MANY = 'findMany'; |
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
# Avocado loads the 'Initial' state, and from there it's all up to you! | |
avo.States['Initial'] = new class | |
# Called the first time this state is loaded. You can set up any stuff your | |
# state needs here. | |
constructor: -> | |
# Yum, an avocado! | |
@avocado = {} | |
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
# Avocado loads the 'Initial' state, and from there it's all up to you! | |
avo.States['Initial'] = new class | |
# Called the first time this state is loaded. You can set up any stuff your | |
# state needs here. | |
constructor: -> | |
# Yum, an avocado! | |
@avocado = {} | |
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
main = new MainBrowser() | |
main.initialize().then -> | |
Engine.state = | |
state: 'Environment' | |
args: | |
teleport: | |
environment: '/environment/browser-demo-kstown.environment.json' | |
roomIndex: 0 |
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
{ | |
"traits": [ | |
{ | |
"type": "Existence" | |
}, | |
{ | |
"type": "Interactive", | |
"state": { | |
"rule": { | |
"name": "Interaction rule", |
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
{ | |
"uri": "/entity/npc/inside_npc1.entity.json", | |
"traits": [ | |
{ | |
"type": "Existence", | |
"state": { | |
"x": 256, | |
"y": 96 | |
} | |
}, |
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
// argument = if (customValue = newCustomValue type)? | |
// V: [customvalue] | |
// else | |
// values = vicarValues entity, type | |
// I: [values[Object.keys(values)[0]].index] |
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
// argument = if (customValue = newCustomValue type)? | |
// V: [customvalue] | |
// else | |
// values = vicarValues entity, type | |
// I: [values[Object.keys(values).shift()].index] |
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
// if (customValue = newCustomValue type)? | |
// V: [customvalue] | |
// else | |
// values = vicarValues entity, type | |
// I: [values[Object.keys(values)[0]].index] | |
Handle<Object> argument = Object::New(); | |
Handle<v8::Value> customValue = newCustomValue(type); | |
if (!customValue->IsUndefined()) { |
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
// argument = if (customValue = newCustomValue type)? | |
// V: [customvalue] | |
// else | |
// I: [vicarValues(entity, type).shift().index] | |
Handle<Object> argument = Object::New(); | |
Handle<v8::Value> customValue = newCustomValue(type); | |
if (!customValue->IsUndefined()) { | |
Handle<Array> a = Array::New(); |