Пример #1
0
        public void WriteObject(System.IO.Stream s)
        {
            if (Actor == null)
            {
                IOUtil.writeShort(s, -1);
                IOUtil.writeShort(s, -1);
            }
            else
            {
                IOUtil.writeShort(s, (short)((MActorFolder)Actor.GetParent()).GetID());
                IOUtil.writeShort(s, (short)Actor.GetID());
            }
            IOUtil.writeString(s, name);
            int imgMappingLen = imgMappingList.getElementCount();

            IOUtil.writeInt(s, imgMappingLen);
            for (int i = 0; i < imgMappingLen; i++)
            {
                ImageMappingElement imgMapElement = (ImageMappingElement)imgMappingList.getElement(i);
                imgMapElement.WriteObject(s);
            }
        }