ease_engine 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +25 -0
  3. data/.travis.yml +3 -0
  4. data/Gemfile +4 -0
  5. data/README.md +33 -0
  6. data/Rakefile +1 -0
  7. data/benchmark/echo/echo_client.rb +90 -0
  8. data/benchmark/echo/echo_packet.rb +9 -0
  9. data/benchmark/echo/echo_server.rb +48 -0
  10. data/benchmark/fps.rb +23 -0
  11. data/benchmark/http.rb +9 -0
  12. data/benchmark/loop/Makefile +39 -0
  13. data/benchmark/loop/Makefile.rb +11 -0
  14. data/benchmark/loop/Rakefile +42 -0
  15. data/benchmark/loop/loop.c +38 -0
  16. data/benchmark/loop/loop.cs +33 -0
  17. data/benchmark/loop/loop.go +33 -0
  18. data/benchmark/loop/loop.js +23 -0
  19. data/benchmark/loop/loop.php +22 -0
  20. data/benchmark/loop/loop.rb +19 -0
  21. data/benchmark/loop/loop.scala +30 -0
  22. data/benchmark/loop/loop_c +0 -0
  23. data/benchmark/loop/loop_cs +0 -0
  24. data/benchmark/loop/loop_go +0 -0
  25. data/benchmark/measure/measure_client.rb +76 -0
  26. data/benchmark/measure/measure_server.rb +47 -0
  27. data/benchmark/process.rb +3 -0
  28. data/benchmark/tcp/tcp_client.rb +45 -0
  29. data/benchmark/tcp/tcp_server.rb +40 -0
  30. data/benchmark/udp/udp_client.rb +84 -0
  31. data/benchmark/udp/udp_packet.rb +40 -0
  32. data/benchmark/udp/udp_server.rb +33 -0
  33. data/bin/console +14 -0
  34. data/bin/setup +7 -0
  35. data/ease_engine.gemspec +27 -0
  36. data/lib/ease_engine.rb +35 -0
  37. data/lib/ease_engine/application.rb +269 -0
  38. data/lib/ease_engine/buffer.rb +25 -0
  39. data/lib/ease_engine/data.rb +158 -0
  40. data/lib/ease_engine/frame.rb +38 -0
  41. data/lib/ease_engine/http.rb +42 -0
  42. data/lib/ease_engine/log.rb +109 -0
  43. data/lib/ease_engine/measure.rb +25 -0
  44. data/lib/ease_engine/packet.rb +150 -0
  45. data/lib/ease_engine/platform.rb +19 -0
  46. data/lib/ease_engine/process.rb +31 -0
  47. data/lib/ease_engine/socket.rb +174 -0
  48. data/lib/ease_engine/time.rb +22 -0
  49. data/lib/ease_engine/timer.rb +72 -0
  50. data/lib/ease_engine/version.rb +3 -0
  51. data/lib/ease_engine/watcher.rb +95 -0
  52. data/types/Rakefile +83 -0
  53. data/types/csharp/EaseEngine.cs +39 -0
  54. data/types/csharp/EaseEngine/Buffer.cs +49 -0
  55. data/types/csharp/EaseEngine/Measure.cs +47 -0
  56. data/types/csharp/EaseEngine/Time.cs +41 -0
  57. data/types/csharp/EaseEngine/Version.cs +7 -0
  58. data/types/csharp/Unity/Assets/Menu.cs +56 -0
  59. data/types/csharp/Unity/Assets/Menu.unity +0 -0
  60. metadata +158 -0
@@ -0,0 +1,7 @@
1
+ namespace EaseEngine {
2
+ public class Version {
3
+ public override string ToString(){
4
+ return "0.0.1";
5
+ }
6
+ }
7
+ }
@@ -0,0 +1,56 @@
1
+ #if UNITY_EDITOR
2
+ using UnityEngine;
3
+ using UnityEditor;
4
+ using System.Collections;
5
+ using System.Threading;
6
+
7
+ public class Menu : MonoBehaviour {
8
+ [MenuItem("EaseEngine/TestAll")]
9
+ public static void TestAll(){
10
+ TestTime();
11
+ TestBuffer();
12
+ TestMeasure();
13
+ TestTraceInfo();
14
+ }
15
+
16
+ [MenuItem("EaseEngine/Test/Time")]
17
+ public static void TestTime(){
18
+ var time = new EaseEngine.Time();
19
+ Debug.Log ( time );
20
+ Debug.Log( time.ToUnixEpochTimeUSec() );
21
+
22
+ Thread.Sleep( 1000 );
23
+
24
+ var time2 = new EaseEngine.Time();
25
+ Debug.Log ( time2 );
26
+ Debug.Log( time2.ToUnixEpochTimeUSec() );
27
+ Debug.Log( time2 - time );
28
+ Debug.Log( time.IsSameDay( time2 ) );
29
+ }
30
+
31
+ [MenuItem("EaseEngine/Test/Buffer")]
32
+ public static void TestBuffer(){
33
+ var buffer = new EaseEngine.Buffer();
34
+ Debug.Log( buffer );
35
+ Debug.Log( buffer.Add( "TEST" ) );
36
+ Debug.Log( buffer.Remove( 1 ) );
37
+ Debug.Log( buffer );
38
+ }
39
+
40
+ [MenuItem("EaseEngine/Test/Measure")]
41
+ public static void TestMeasure(){
42
+ var measure = new EaseEngine.Measure();
43
+
44
+ Thread.Sleep( 1000 );
45
+
46
+ measure.Check();
47
+ Debug.Log( "update_usec="+ measure.UpdateUSec +" count="+ measure.Count );
48
+ }
49
+
50
+ [MenuItem("EaseEngine/Test/TraceInfo")]
51
+ public static void TestTraceInfo(){
52
+ Debug.Log( EaseEngine.Common.TraceInfo() );
53
+ Debug.Log( EaseEngine.Common.TraceInfo( 0 ) );
54
+ }
55
+ }
56
+ #endif
metadata ADDED
@@ -0,0 +1,158 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ease_engine
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.19
5
+ platform: ruby
6
+ authors:
7
+ - liveralmask
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-07-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.9'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: cool.io
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: msgpack
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: Easy application programming scripts.
70
+ email:
71
+ - liveralmask.lisk@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".travis.yml"
78
+ - Gemfile
79
+ - README.md
80
+ - Rakefile
81
+ - benchmark/echo/echo_client.rb
82
+ - benchmark/echo/echo_packet.rb
83
+ - benchmark/echo/echo_server.rb
84
+ - benchmark/fps.rb
85
+ - benchmark/http.rb
86
+ - benchmark/loop/Makefile
87
+ - benchmark/loop/Makefile.rb
88
+ - benchmark/loop/Rakefile
89
+ - benchmark/loop/loop.c
90
+ - benchmark/loop/loop.cs
91
+ - benchmark/loop/loop.go
92
+ - benchmark/loop/loop.js
93
+ - benchmark/loop/loop.php
94
+ - benchmark/loop/loop.rb
95
+ - benchmark/loop/loop.scala
96
+ - benchmark/loop/loop_c
97
+ - benchmark/loop/loop_cs
98
+ - benchmark/loop/loop_go
99
+ - benchmark/measure/measure_client.rb
100
+ - benchmark/measure/measure_server.rb
101
+ - benchmark/process.rb
102
+ - benchmark/tcp/tcp_client.rb
103
+ - benchmark/tcp/tcp_server.rb
104
+ - benchmark/udp/udp_client.rb
105
+ - benchmark/udp/udp_packet.rb
106
+ - benchmark/udp/udp_server.rb
107
+ - bin/console
108
+ - bin/setup
109
+ - ease_engine.gemspec
110
+ - lib/ease_engine.rb
111
+ - lib/ease_engine/application.rb
112
+ - lib/ease_engine/buffer.rb
113
+ - lib/ease_engine/data.rb
114
+ - lib/ease_engine/frame.rb
115
+ - lib/ease_engine/http.rb
116
+ - lib/ease_engine/log.rb
117
+ - lib/ease_engine/measure.rb
118
+ - lib/ease_engine/packet.rb
119
+ - lib/ease_engine/platform.rb
120
+ - lib/ease_engine/process.rb
121
+ - lib/ease_engine/socket.rb
122
+ - lib/ease_engine/time.rb
123
+ - lib/ease_engine/timer.rb
124
+ - lib/ease_engine/version.rb
125
+ - lib/ease_engine/watcher.rb
126
+ - types/Rakefile
127
+ - types/csharp/EaseEngine.cs
128
+ - types/csharp/EaseEngine/Buffer.cs
129
+ - types/csharp/EaseEngine/Measure.cs
130
+ - types/csharp/EaseEngine/Time.cs
131
+ - types/csharp/EaseEngine/Version.cs
132
+ - types/csharp/Unity/Assets/Menu.cs
133
+ - types/csharp/Unity/Assets/Menu.unity
134
+ homepage: https://github.com/liveralmask/ease_engine
135
+ licenses:
136
+ - MIT
137
+ metadata: {}
138
+ post_install_message:
139
+ rdoc_options: []
140
+ require_paths:
141
+ - lib
142
+ required_ruby_version: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ required_rubygems_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ requirements: []
153
+ rubyforge_project:
154
+ rubygems_version: 2.2.2
155
+ signing_key:
156
+ specification_version: 4
157
+ summary: Easy application programming scripts.
158
+ test_files: []