protected override void WriteDelta(BinaryWriter writer) { texture = new NetTexture2DExtended(Value.getExtendedTexture()); texture.Write(writer); which = new NetInt(Value.ParentSheetIndex); which.Write(writer); tilePos = new NetVector2(Value.TileLocation); tilePos.Write(writer); InventoryMaxSize = new NetInt(Value.inventoryMaxSize); InventoryMaxSize.Write(writer); sourceRect = new NetRectangle(Value.sourceRect); sourceRect.Write(writer); boundingBox = new NetRectangle(Value.boundingBox.Value); sourceRect.Write(writer); drawPosition = new NetVector2(Value.drawPosition); drawPosition.Write(writer); locationName = new NetString(Value.locationsName); locationName.Write(writer); /* * if (Value.animationManager == null) * { * throw new Exception("WTF, why is the animation manager null???????????"); * } * animationManager = new NetAnimationManager(Value.animationManager); * animationManager.Write(writer); */ }
protected override void WriteDelta(BinaryWriter writer) { sourceRect = new NetRectangle(Value.sourceRectangle); sourceRect.Write(writer); frameDuration = new NetInt(Value.frameDuration); frameDuration.Write(writer); frameDurationUntilNextAnimation = new NetInt(Value.frameCountUntilNextAnimation); frameDurationUntilNextAnimation.Write(writer); }