fix: add traits later
This commit is contained in:
parent
9f4e057a3a
commit
7c98fac916
|
@ -29,78 +29,76 @@ export default (latus) => class ServerJoin extends Join() {
|
|||
'cha0s',
|
||||
'index.entity.json',
|
||||
),
|
||||
traits: {
|
||||
Controllable: {
|
||||
params: {
|
||||
actions: {
|
||||
HotbarSlot0: [
|
||||
{type: 'key', index: '1'},
|
||||
],
|
||||
HotbarSlot1: [
|
||||
{type: 'key', index: '2'},
|
||||
],
|
||||
HotbarSlot2: [
|
||||
{type: 'key', index: '3'},
|
||||
],
|
||||
HotbarSlot3: [
|
||||
{type: 'key', index: '4'},
|
||||
],
|
||||
HotbarSlot4: [
|
||||
{type: 'key', index: '5'},
|
||||
],
|
||||
HotbarSlot5: [
|
||||
{type: 'key', index: '6'},
|
||||
],
|
||||
HotbarSlot6: [
|
||||
{type: 'key', index: '7'},
|
||||
],
|
||||
HotbarSlot7: [
|
||||
{type: 'key', index: '8'},
|
||||
],
|
||||
HotbarSlot8: [
|
||||
{type: 'key', index: '9'},
|
||||
],
|
||||
HotbarSlot9: [
|
||||
{type: 'key', index: '0'},
|
||||
],
|
||||
HotbarSlotNext: [
|
||||
{type: 'button', index: 5},
|
||||
{type: 'wheel', index: 'down'},
|
||||
],
|
||||
HotbarSlotPrevious: [
|
||||
{type: 'button', index: 4},
|
||||
{type: 'wheel', index: 'up'},
|
||||
],
|
||||
MoveUp: [
|
||||
{type: 'button', index: 12},
|
||||
{type: 'key', index: 'w'},
|
||||
],
|
||||
MoveLeft: [
|
||||
{type: 'button', index: 14},
|
||||
{type: 'key', index: 'a'},
|
||||
],
|
||||
MoveDown: [
|
||||
{type: 'button', index: 13},
|
||||
{type: 'key', index: 's'},
|
||||
],
|
||||
MoveRight: [
|
||||
{type: 'button', index: 15},
|
||||
{type: 'key', index: 'd'},
|
||||
],
|
||||
UseItem: [
|
||||
{type: 'button', index: 0},
|
||||
{type: 'key', index: 'ArrowLeft'},
|
||||
],
|
||||
Interact: [
|
||||
{type: 'key', index: 'e'},
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
Informed: {},
|
||||
},
|
||||
},
|
||||
);
|
||||
await entity.addTrait('Controllable', {
|
||||
params: {
|
||||
actions: {
|
||||
HotbarSlot0: [
|
||||
{type: 'key', index: '1'},
|
||||
],
|
||||
HotbarSlot1: [
|
||||
{type: 'key', index: '2'},
|
||||
],
|
||||
HotbarSlot2: [
|
||||
{type: 'key', index: '3'},
|
||||
],
|
||||
HotbarSlot3: [
|
||||
{type: 'key', index: '4'},
|
||||
],
|
||||
HotbarSlot4: [
|
||||
{type: 'key', index: '5'},
|
||||
],
|
||||
HotbarSlot5: [
|
||||
{type: 'key', index: '6'},
|
||||
],
|
||||
HotbarSlot6: [
|
||||
{type: 'key', index: '7'},
|
||||
],
|
||||
HotbarSlot7: [
|
||||
{type: 'key', index: '8'},
|
||||
],
|
||||
HotbarSlot8: [
|
||||
{type: 'key', index: '9'},
|
||||
],
|
||||
HotbarSlot9: [
|
||||
{type: 'key', index: '0'},
|
||||
],
|
||||
HotbarSlotNext: [
|
||||
{type: 'button', index: 5},
|
||||
{type: 'wheel', index: 'down'},
|
||||
],
|
||||
HotbarSlotPrevious: [
|
||||
{type: 'button', index: 4},
|
||||
{type: 'wheel', index: 'up'},
|
||||
],
|
||||
MoveUp: [
|
||||
{type: 'button', index: 12},
|
||||
{type: 'key', index: 'w'},
|
||||
],
|
||||
MoveLeft: [
|
||||
{type: 'button', index: 14},
|
||||
{type: 'key', index: 'a'},
|
||||
],
|
||||
MoveDown: [
|
||||
{type: 'button', index: 13},
|
||||
{type: 'key', index: 's'},
|
||||
],
|
||||
MoveRight: [
|
||||
{type: 'button', index: 15},
|
||||
{type: 'key', index: 'd'},
|
||||
],
|
||||
UseItem: [
|
||||
{type: 'button', index: 0},
|
||||
{type: 'key', index: 'ArrowLeft'},
|
||||
],
|
||||
Interact: [
|
||||
{type: 'key', index: 'e'},
|
||||
],
|
||||
},
|
||||
},
|
||||
});
|
||||
await entity.addTrait('Informed');
|
||||
player = universe.addPlayer({
|
||||
entity,
|
||||
socket,
|
||||
|
|
Loading…
Reference in New Issue
Block a user