Skip to content

Commit

Permalink
RotationFloat32 implemented. 1.7!
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Jul 21, 2019
1 parent 1b71ddb commit a99b18b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 22 deletions.
3 changes: 2 additions & 1 deletion core/binary/BinaryType.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ var BinaryType = createEnum([
'Rotation8',
'ASCIIString',
'UTF8String',
'RGB888'
'RGB888',
'RotationFloat32'
])


Expand Down
15 changes: 2 additions & 13 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
/**
* Please see the NENGI END USER LICENSE available in the LICENSE.txt file
* By downloading or using this software or related content you are agreeing to
* be bounds by the terms of the NENGI END USER LICENSE Agreement. If you do not
* or cannot agree to the terms of the Agreement please do not download or use
* this software.
*/
var nengi = {
importMode: 'default'
}

//nengi.config = require('./config')

import BinaryType from './core/binary/BinaryType'
import Protocol from './core/protocol/Protocol'
import EntityProtocol from './core/protocol/EntityProtocol'
Expand Down Expand Up @@ -57,7 +48,7 @@ nengi.Number =
nengi.Float64 = BinaryType.Float64
nengi.EntityId = BinaryType.EntityId
nengi.RGB888 = BinaryType.RGB888
//nengi.Rotation8 = BinaryType.Rotation8
nengi.RotationFloat32 = BinaryType.RotationFloat32
nengi.ASCIIString = BinaryType.ASCIIString
nengi.String =
nengi.UTF8String = BinaryType.UTF8String
Expand Down Expand Up @@ -97,6 +88,4 @@ nengi.metaConfig = metaConfig
//nengi.Client = Client
//nengi.Interpolator = Interpolator



export default nengi;
export default nengi
8 changes: 1 addition & 7 deletions indexBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ const nengi = {
importMode: 'browser'
}

//nengi.config = require('./config')

import BinaryType from './core/binary/BinaryType'
import Protocol from './core/protocol/Protocol'
import EntityProtocol from './core/protocol/EntityProtocol'
Expand Down Expand Up @@ -39,7 +37,7 @@ nengi.Number =
nengi.Float64 = BinaryType.Float64
nengi.EntityId = BinaryType.EntityId
nengi.RGB888 = BinaryType.RGB888
//nengi.Rotation8 = BinaryType.Rotation8
nengi.RotationFloat32 = BinaryType.RotationFloat32
nengi.ASCIIString = BinaryType.ASCIIString
nengi.String =
nengi.UTF8String = BinaryType.UTF8String
Expand All @@ -61,14 +59,10 @@ nengi.MessageProtocol = MessageProtocol
nengi.Command =
nengi.CommandProtocol = CommandProtocol


nengi.proxify = proxify


// browser
nengi.Client = Client
nengi.Interpolator = Interpolator



export default nengi
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nengi",
"version": "1.6.0",
"version": "1.7.0",
"description": "multiplayer game networking for node.js and html5",
"main": "index.js",
"browser": "indexBrowser.js",
Expand Down

0 comments on commit a99b18b

Please sign in to comment.