Spine.SkeletonBinary.ReadSkin C# (CSharp) Méthode

ReadSkin() private méthode

private ReadSkin ( Stream input, String skinName, bool nonessential ) : Spine.Skin
input Stream
skinName String
nonessential bool
Résultat Spine.Skin
		private Skin ReadSkin (Stream input, String skinName, bool nonessential) {
			int slotCount = ReadVarint(input, true);
			if (slotCount == 0) return null;
			Skin skin = new Skin(skinName);
			for (int i = 0; i < slotCount; i++) {
				int slotIndex = ReadVarint(input, true);
				for (int ii = 0, nn = ReadVarint(input, true); ii < nn; ii++) {
					String name = ReadString(input);
					Attachment attachment = ReadAttachment(input, skin, slotIndex, name, nonessential);
					if (attachment != null) skin.AddAttachment(slotIndex, name, attachment);
				}
			}
			return skin;
		}