[hw] rename haxework package to hw
This commit is contained in:
11
src/main/hw/utils/ObjectUtil.hx
Normal file
11
src/main/hw/utils/ObjectUtil.hx
Normal file
@@ -0,0 +1,11 @@
|
||||
package hw.utils;
|
||||
|
||||
import haxe.Unserializer;
|
||||
import haxe.Serializer;
|
||||
|
||||
class ObjectUtil {
|
||||
|
||||
public static function clone<T>(object:T):T {
|
||||
return new Unserializer(Serializer.run(object)).unserialize();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user