-
This commit is contained in:
25
src/haxe/ru/m/armageddon/Armageddon.hx
Executable file
25
src/haxe/ru/m/armageddon/Armageddon.hx
Executable file
@@ -0,0 +1,25 @@
|
||||
package ru.m.armageddon;
|
||||
|
||||
import haxe.io.BytesOutput;
|
||||
import haxework.log.TraceLogger;
|
||||
|
||||
class Armageddon {
|
||||
|
||||
private static inline var TAG = "Armageddon";
|
||||
|
||||
public static function main() {
|
||||
L.push(new TraceLogger());
|
||||
L.d(TAG, Meta.getVersion());
|
||||
|
||||
var foo = new Foo();
|
||||
foo.bar = "test";
|
||||
|
||||
var out = new BytesOutput();
|
||||
foo.writeTo(out);
|
||||
|
||||
var foo2 = new Foo();
|
||||
foo2.mergeFrom(out.getBytes());
|
||||
|
||||
L.d(TAG, foo2.bar);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user