-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
index-es6.js
91 lines (72 loc) · 2.36 KB
/
index-es6.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
var nengi = {
importMode: 'default'
}
import BinaryType from './core/binary/BinaryType'
import Protocol from './core/protocol/Protocol'
import EntityProtocol from './core/protocol/EntityProtocol'
import LocalEventProtocol from './core/protocol/LocalEventProtocol'
import MessageProtocol from './core/protocol/MessageProtocol'
import CommandProtocol from './core/protocol/CommandProtocol'
import proxify from './core/protocol/proxify'
// server only
import Instance from './core/instance/Instance'
import Channel from './core/instance/Channel'
import Bot from './core/bot/Bot'
// client only
import Client from './core/client/Client'
import Interpolator from './core/client/Interpolator'
import ProtocolMap from './core/protocol/ProtocolMap'
import metaConfig from './core/common/metaConfig'
// shortcuts for less typing
nengi.Boolean = BinaryType.Boolean
nengi.Int2 = BinaryType.Int2
nengi.UInt2 = BinaryType.UInt2
nengi.Int3 = BinaryType.Int3
nengi.UInt3 = BinaryType.UInt3
nengi.Int4 = BinaryType.Int4
nengi.UInt4 = BinaryType.UInt4
nengi.Int6 = BinaryType.Int6
nengi.UInt6 = BinaryType.UInt6
nengi.Int8 = BinaryType.Int8
nengi.UInt8 = BinaryType.UInt8
nengi.Int10 = BinaryType.Int10
nengi.UInt10 = BinaryType.UInt10
nengi.Int12 = BinaryType.Int12
nengi.UInt12 = BinaryType.UInt12
nengi.Int16 = BinaryType.Int16
nengi.UInt16 = BinaryType.UInt16
nengi.Int32 = BinaryType.Int32
nengi.UInt32 = BinaryType.UInt32
nengi.Float32 = BinaryType.Float32
nengi.Number =
nengi.Float64 = BinaryType.Float64
nengi.EntityId = BinaryType.EntityId
nengi.RGB888 = BinaryType.RGB888
nengi.RotationFloat32 = BinaryType.RotationFloat32
nengi.ASCIIString = BinaryType.ASCIIString
nengi.String =
nengi.UTF8String = BinaryType.UTF8String
nengi.Basic =
nengi.Protocol = Protocol
nengi.Entity =
nengi.EntityProtocol = EntityProtocol
nengi.LEvent =
nengi.LocalEventProtocol = LocalEventProtocol
nengi.Msg =
nengi.Message =
nengi.MessageProtocol = MessageProtocol
nengi.Command =
nengi.CommandProtocol = CommandProtocol
nengi.proxify = proxify
// NODE-only
nengi.Instance = Instance
nengi.Channel = Channel
nengi.Bot = Bot
nengi.Client = Client
nengi.Interpolator = Interpolator
nengi.ProtocolMap = ProtocolMap
nengi.metaConfig = metaConfig
// browser
//nengi.Client = Client
//nengi.Interpolator = Interpolator
export default nengi