openra 4.0.2 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9b7c45f11147948dc902fdca226050cec051fe3609dd5bd9c29a4d6bb8ce4a0
4
- data.tar.gz: dbb255e98e93aa69dc8b0f151048ffbf6cdf95cb6e98dfed961620594ee012c0
3
+ metadata.gz: 1c6568897f9d175be52c31b6d1f4dcc909215fde21aa10f6d78c0c06c2415a9b
4
+ data.tar.gz: 305dd52c74becb07dced28f0c45f03ce0272eb82c6ad968245511161c00e1bfd
5
5
  SHA512:
6
- metadata.gz: 2e3289948dc5b00ceca957328329a25b1bab4cb0798926cd73c6cc17a813eb1de74f411b2da501c2f002b40597a45fe544902ad1851943aa7a16d489f63c24d2
7
- data.tar.gz: 8219fca24372f10f2186b12574263786ba5f6cbc4f70771446cacbe8df0213c556af6f486d4f00ac61ab59824a363c67ed606631cbb60adc4f36cabf0c6c1eb3
6
+ metadata.gz: db5eab0a6f4a1dc89e3d9ee7cc00f9c85ba668d84b6bf74422eff4abb73b1dfc2f557e7d6221fb98b7f78211c6c7c2c3868b095731fd8e1d2d3c887b6d63b413
7
+ data.tar.gz: 6e9762978a42de472809f2a6759fd0f6a0c2117e101f64e86cd77a2a19cbdf8ababffb97aa333d133083099d4e9f30c6c6121134a808dd995f1cd9df1c5ea081
@@ -9,6 +9,7 @@ module Openra
9
9
  attribute :server_name, Types::Strict::String.meta(from: 'ServerName')
10
10
  attribute :map_hash, Types::Strict::String.meta(from: 'Map')
11
11
  attribute :timestep, Types::Params::Integer.meta(from: 'Timestep')
12
+ attribute :net_frame_interval, Types::Params::Integer.meta(from: 'NetFrameInterval')
12
13
  attribute :order_latency, Types::Params::Integer.meta(
13
14
  from: 'OrderLatency'
14
15
  )
@@ -34,7 +35,11 @@ module Openra
34
35
  end
35
36
 
36
37
  def frametime_multiplier
37
- timestep * 3
38
+ if timestep
39
+ timestep * 3
40
+ else
41
+ net_frame_interval * 40
42
+ end
38
43
  end
39
44
  end
40
45
  end
data/lib/openra/struct.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/transformer/all'
3
+ require 'dry-transformer'
4
4
  require 'openra/types'
5
5
  require 'dry-struct'
6
6
  require 'openra/struct/functions'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Openra
4
- VERSION = '4.0.2'.freeze
4
+ VERSION = '5.0.0'.freeze
5
5
  end
data/openra.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.add_dependency 'bundler'
26
26
  spec.add_dependency 'bindata'
27
- spec.add_dependency 'dry-transformer'
27
+ spec.add_dependency 'dry-transformer', '>= 1.0.0'
28
28
  spec.add_dependency 'dry-types'
29
29
  spec.add_dependency 'dry-struct'
30
30
  spec.add_dependency 'dry-cli'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openra
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.2
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Holland
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-12 00:00:00.000000000 Z
11
+ date: 2023-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 1.0.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 1.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: dry-types
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -136,7 +136,7 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
- description:
139
+ description:
140
140
  email:
141
141
  - andyholland1991@aol.com
142
142
  executables:
@@ -198,7 +198,7 @@ homepage: https://github.com/AMHOL/openra-ruby
198
198
  licenses:
199
199
  - MIT
200
200
  metadata: {}
201
- post_install_message:
201
+ post_install_message:
202
202
  rdoc_options: []
203
203
  require_paths:
204
204
  - lib
@@ -213,8 +213,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  - !ruby/object:Gem::Version
214
214
  version: '0'
215
215
  requirements: []
216
- rubygems_version: 3.2.3
217
- signing_key:
216
+ rubygems_version: 3.4.9
217
+ signing_key:
218
218
  specification_version: 4
219
219
  summary: Openra Rubygem
220
220
  test_files: []