Difference between revisions of "Sic/frame2.as"
From Organic Design wiki
({{as}}) |
m |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | {{legacy}} | ||
| + | <source lang="as"> | ||
// | // | ||
// Liscenced under LGPL: www.gnu.org/copyleft/lesser.html | // Liscenced under LGPL: www.gnu.org/copyleft/lesser.html | ||
| − | // | + | // |
// Nad - 2003 - SIC-Games | // Nad - 2003 - SIC-Games | ||
// | // | ||
| Line 47: | Line 49: | ||
someNode = {queue:[P,X]}; | someNode = {queue:[P,X]}; | ||
root = {queue:[A,someNode]}; | root = {queue:[A,someNode]}; | ||
| + | </source> | ||
| + | [[Category:ActionScript]] | ||
Latest revision as of 22:15, 20 November 2019
//
// Liscenced under LGPL: www.gnu.org/copyleft/lesser.html
//
// Nad - 2003 - SIC-Games
//
// Frame2: GENERAL INITIALISATION
//todo
// change shell path to /
// zbuff doesn't seem to be working! - do torus of balls round y-axis to test
//Stage.scaleMode = 'noScale';
Mouse.hide();
initialiseShell();
shell.state = 1;
// node - item in the network with GUID
// pNode - physical node
// uNode - user node
// gNode - group node
// iNode - interface node
// functions use __guid__ for local access name this way we can easily match and replace the content later
// functions could manipulate the items directly from this["__guid/guid/guid...__"] (?)
// but the executioner would have to raise onChange events
// so maybe better to manipulate space via accessor functions
// get/set/create/destroy/path-access....
// - since we only ever access nodes in a local context by class, their class-guid is their key
// Nodal Core
// - every pNode has local tree of nodes as native object/hash refs
// - internally the node GUID(s) are not used, only their refs are used, their GUID is a property
// - when communicated, shared-context of huffman binary names map to GUIDs
A = function() {logAdd("A"); return B;};
B = function() {logAdd("B"); return C;};
C = function() {logAdd("C"); return;};
P = function() {logAdd("P"); return Q;};
Q = function() {logAdd("Q"); return R;};
R = function() {logAdd("R"); return;};
X = function() {logAdd("X"); return Y;};
Y = function() {logAdd("Y"); return Z;};
Z = function() {logAdd("Z"); return;};
someNode = {queue:[P,X]};
root = {queue:[A,someNode]};



