public object Unpack(Packer packer) { return((ViewId)ViewIdSerializer.UnpackDirect(packer)); }
public static ME.ECS.Views.IView UnpackDirect(Packer packer) { var viewId = ViewIdSerializer.UnpackDirect(packer); return(Worlds.currentWorld.GetModule <ME.ECS.Views.ViewsModule>().GetViewSource(viewId)); }
public void Pack(Packer packer, object obj) { ViewIdSerializer.PackDirect(packer, (ViewId)obj); }
public static void PackDirect(Packer packer, ME.ECS.Views.IView view) { var viewId = Worlds.currentWorld.GetModule <ME.ECS.Views.ViewsModule>().GetViewSourceId(view); ViewIdSerializer.PackDirect(packer, viewId); }