-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathindexBrowser.js
68 lines (58 loc) · 1.92 KB
/
indexBrowser.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
const nengi = {
importMode: 'browser'
}
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 Client from './core/client/Client'
import Interpolator from './core/client/Interpolator'
import proxify from './core/protocol/proxify'
// 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.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
// browser
nengi.Client = Client
nengi.Interpolator = Interpolator
export default nengi