コード例 #1
0
 public object Unpack(Packer packer)
 {
     return((ViewId)ViewIdSerializer.UnpackDirect(packer));
 }
コード例 #2
0
        public static ME.ECS.Views.IView UnpackDirect(Packer packer)
        {
            var viewId = ViewIdSerializer.UnpackDirect(packer);

            return(Worlds.currentWorld.GetModule <ME.ECS.Views.ViewsModule>().GetViewSource(viewId));
        }
コード例 #3
0
 public void Pack(Packer packer, object obj)
 {
     ViewIdSerializer.PackDirect(packer, (ViewId)obj);
 }
コード例 #4
0
        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);
        }