Package gwlpr.protocol.util

Examples of gwlpr.protocol.util.WorldPosition


        p.uLong = 4;
        p.single = 5.0F;
        p.vec2 = new Vector2(6.0F, 7.0F);
        p.vec3 = new Vector3(8.0F, 9.0F, 10.0F);
        p.vec4 = new Vector4(11.0F, 12.0F, 13.0F, 14.0F);
        p.dw3 = new WorldPosition(15.0F, 16.0F, 17.0F, 18);
        p.vint = 19;
        p.ascii = "20";
        p.utf16 = "21";
        p.constBuf = new byte[] {(byte)22, (byte)23};
        p.varBufPre1 = new byte[] {(byte)24, (byte)25, (byte)26};
View Full Code Here


       
        @Override
        protected void put(ByteBuf buf, Object object)
                throws Exception
        {
            WorldPosition wp = (WorldPosition)field.get(object);
            buf.writeFloat(wp.getX());
            buf.writeFloat(wp.getY());
            buf.writeFloat(wp.getZ());
            buf.writeInt((int)wp.getW());
        }
View Full Code Here

        }
       
        @Override
        protected Object get(ByteBuf buf)
        {
            return buf.readableBytes() >= 16 ? new WorldPosition(buf.readFloat(), buf.readFloat(), buf.readFloat(), buf.readUnsignedInt()) : null;
        }
View Full Code Here

TOP

Related Classes of gwlpr.protocol.util.WorldPosition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.