Beispiel #1
0
        public void AppendPkg(PkgReader pkg, int offset)
        {
            //WriteByteArray(pkg.Ptr, pkg.DataPtr() + offset, pkg.GetSize() - offset);
            unsafe
            {
                var src = (byte *)pkg.Ptr;

                WritePtr(src + pkg.DataPtr() + offset, pkg.GetSize() - offset);
            }
        }
Beispiel #2
0
            public void Load(ref PkgReader pkg)
            {
                byte target;

                pkg.Read(out target);
                pkg.Read(out RouteSlot);
                pkg.Read(out Authority);
                switch ((ERouteTarget)target)
                {
                case ERouteTarget.Data:
                    pkg.Read(out AccountId);
                    break;

                case ERouteTarget.Hall:
                    pkg.Read(out MapInHall);
                    pkg.Read(out PlayerInMap);
                    break;
                }
            }